PDA

View Full Version : Statemanagement Simple Example



LovingIt
6 Jun 2008, 11:38 AM
Hi

I just started on extjs and using v2.1.

I am trying it out with a single page app(modified from the examples/portal/portal.html).
Applicaiton works well...no issues....
my next task is to check out the statemanagent....

I have set the stateId,stateful and stateEvents of the viewport to appropriate values and on Ext.onReady set the state provider to the cookieprovider.

When i delete a panel from the viewport, i was expecting it will save the state and on reload of the page, i will have the viewport without the panel i deleted.

nothing seems to be happening...

Is there any additional things i need to do to enable state management ?
Remember, i am setting the stateId,stateful:true and stateEvents of the viewport and Ext.onReady settting state manager to cookieprovider.

Could someone tell me whats wrong and what additional things i need to do to enable state management ?

Is there a simple example i can look into to achieve this ?

Regards & Thanx in advance...