state management
I am new to extjs, trying to build some application.
I was browsing the examples and i seen
I am using tomcat and java and i wonder how can i use this state management?
How do i translate php into jsp?
And when does save-state and get-state are called?
Thanks a lot.
The following components currently support state:
1. Border layout east/west region width and north/south region height.
2. Window top/left/width/height.
3. Grid column width, hidden and index.
The state manager needs a provider to store the state. You can choose from the providers I listed in my first post.
Cookie provider is the most used, but if you want to store user-based settings in a database I would recommend HttpProvider.
I am trying to copy the feed-viewer example and change it to my needs.
There i stumbled upon the SessionProvider.
Seems to me better to store the state in the server side and not be dependent on the cookies settings of the client.
What state does this mechanism stores? The view of the ui?
The default CookieProvider stores it in the browser cookie.
The SessionProvider you mention stores it in the current PHP session.
And the HttpProvider (http://extjs.com/forum/showthread.php?t=24970) stores in on the server using Ajax.
#If you have any other info about this subject , Please add it free.# |