State management in the web UI framework
The Web UI Framework provides a mechanism for state management, which enables the application to remember a user interface state and apply it across user sessions. You can implement state management with either the default implementation of the Web UI Framework or with a pluggable custom implementation. You can also customize the default implementation of the Web UI Framework.
The default Web UI Framework implementation of state management
has the following features:
- The state is saved and restored from the database, where the PLT_USER_UI_STATE table contains the state information.
- The UI state is stored on a periodic basis. The time period is
configurable. Note: Saving the UI state on every change is performance-intensive.
- You can control the list of components whose state is stored/restored.
- State changes are remembered/cached. If there are no state changes, then the state is not saved.
- Utility methods are provided on both the client side and the server side to synchronously fetch the state. The UI state is cached on the client side once it has been accessed, to avoid multiple round trips to the server.
- If a particular user is deleted, the state for that user is automatically deleted from the PLT_USER_UI_STATE table.