Dear,
Are there any ways to get all the attributes stored in VaadinSession? like the method of getAttributeNames in HttpSesion?
Many thanks,
Joey
Dear,
Are there any ways to get all the attributes stored in VaadinSession? like the method of getAttributeNames in HttpSesion?
Many thanks,
Joey
Hi,
unfortunately it looks like no - the attributes map is even private, so you can’t access it in a subclass.
Best regards,
Olli
Hi,
Any chance that you might be able to implement that method? It might be helpful.
Best regards,
Joey
I can’t be certain, but I think it’s been left out on purpose. From what I can tell, the only places that add attributes in the Framework are a few internal attributes that you wouldn’t really want to override -
PRESERVE_UNBOUND_SESSION_ATTRIBUTE in VaadinService, color picker history and LegacyApplicationUIProvider.
If you add attributes to the session yourself, you should at least have the keys that you can check for.
-Olli