TehLasher
19 Nov 2009, 5:42 AM
Hi all,
I'm trying to wrap my head around how the concept of 'state' works in GXT, so far I've only been able to make a contentPanel remember if it was collapsed or not when a page refresh takes place, but any widgets nested within that panel seem to forget their state, even when the setStateful() parameter is true and a stateId has been set.
I'd been lead to believe that a stateful GXT app was achievable 'out of the box', so i'm left wonder exactly 'what' the state for a given component consists of, is it events eg: A collapsed contentPanel. Or does it also contain information like the absolute position of the widget in its parent? Is a data object such as BorderLayoutData required to achieve stateful behaviour?
The API documentation has taken me in circles for the last couple of days so if anyone can offer an overview of how one would achieve a stateful GXT application it would be very appreciated.
I've undertaken the statemanager/ Cookieprovider methodology as shown in the API docs, but at some point I'll need to swap out the Cookie provider with a customised provider as we're producing an application where cookies wouldn't provide the level security we require.
I'm specifically intrested GXT (EXT-GWT 2.0.1), rather than EXT Js as i've seen a number of tutorials offering advice on how to achieve stateful behaviour within EXT Js and they've not really helped me progress at all.
Thanks in advance to anyone who can offer help with this
I'm trying to wrap my head around how the concept of 'state' works in GXT, so far I've only been able to make a contentPanel remember if it was collapsed or not when a page refresh takes place, but any widgets nested within that panel seem to forget their state, even when the setStateful() parameter is true and a stateId has been set.
I'd been lead to believe that a stateful GXT app was achievable 'out of the box', so i'm left wonder exactly 'what' the state for a given component consists of, is it events eg: A collapsed contentPanel. Or does it also contain information like the absolute position of the widget in its parent? Is a data object such as BorderLayoutData required to achieve stateful behaviour?
The API documentation has taken me in circles for the last couple of days so if anyone can offer an overview of how one would achieve a stateful GXT application it would be very appreciated.
I've undertaken the statemanager/ Cookieprovider methodology as shown in the API docs, but at some point I'll need to swap out the Cookie provider with a customised provider as we're producing an application where cookies wouldn't provide the level security we require.
I'm specifically intrested GXT (EXT-GWT 2.0.1), rather than EXT Js as i've seen a number of tutorials offering advice on how to achieve stateful behaviour within EXT Js and they've not really helped me progress at all.
Thanks in advance to anyone who can offer help with this