To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
is there something like Androids Shared Preferences in Vaadin ? I used the wizard and have no idea to get the settings from the wizard class to my main class without to write it in static fields from the main class. I there a shared preferences provider i missed ? Something thread safe ?
Sounds like java.util.Properties might be what you are looking for? For a thing like SharedPreferences.Editor, I once created special "PropertiesItem" that can be used to bind java.util.Properties directly to a Vaadin Form or FieldGroup.
For "thread safety" it usually enough that you keep a copy of them stored in field variable in your UI class (one instance per user then) and shared between the users by saving/loading them from a file.