add the state to the hash of the page. and when initializing accordion check the hash and restore it. this should survive page refreshes.
-igor On Thu, Mar 22, 2012 at 7:20 AM, Alfonso Quiroga <[email protected]> wrote: > Hi, in my job we are using wicket and I've made some components like > Accordion, etc. The problem is, when the page refreshes, the accordion > state is reseted. I think I can develop this solution: > > * every time the users clicks in a accordion tab, an AJAX request is > made, to mantain the component state in the server. > > But it will be very heavy for the server, I mean, too many ajax > requests (one per click). I'm looking a NON-ajax solution. > > In the page we have links (grids with paginator, buttons, etc) Is > there a global solution that, no matter which link is clicked, it will > *always* send the component state? or maybe using cookies? thanks in > advance > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
