Matej Knopp schrieb:
Johan Compagner wrote:
this is pretyt much all in place.
I don't believe in a cookie and or url state what is that? storing a
page in an url?
We have a branch where we have a first draft of ClientSide Page
saving (in an javascript variable that is then set in a hidden field
of all the forms)
How will hidden field work with ajax? Will every response have to
carry the whole (new) page state?
Sorry for this question from the gallery, but I am also intressted in
client-side state with AJAX, albeit in another project.
My assumption is that with AJAX you have the advantage that an AJAX call
does not have the new-window or back-button problem. Requests generated
by this 'problems' are never Ajax-Requests and if you handle the
back-button with AJAX you will catch it in JavaScript anway and have an
explicit event. IMO this makes things easier with AJAX and I thought you
could use for regular requests client-side-state and for AJAX the Session.
What I think of is that the first AJAX call will have to send the
client-side-state, but than this state can be kept in the Session under
some random unique-key. The first AJAX response than sends back the
unique-key to the client which keeps it and all further AJAX requests
than just transmit this unique-key back to the server (and not the full
state, because this is kept in the Session). After the AJAX calls when
the first regular request comes to the server the request is checked for
the presence of a unique-key and if so the state transmitted by the
request is dismissed and replaced by the one in the Session, which is
than again send back to the client for client-side-state-keeping. And
the thing starts over.
I think this way you can go to some extend around the AJAX ClientSide
state problem.
Would be great if you could share your thoughts about that.
Thanks,
Christian
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user