Igor Vaynberg wrote:
> this happens because ajax requests turn off versioning, otherwise there 
> would be all kinds of problems with page expiration - take selfupdating 
> ajax stuff - 10 updates and all other pages are out of the pagemap so if 
> you click the back button and a link on the prev page you get page 
> expired error. im not really sure what the best solution here is. maybe 
> you can manually call page/component.setversioned(true) and turn the 
> versioning on before you update the model, but then be aware of the page 
> expiration i described above.
> 
> i know matej has been working on hybrid urls that /might/ ease the pain 
> somewhat, but i dont know where he is on that.
Hybrid urls (at least those that could allow ajax request to update 
urls) are not possible. When I was initially thinking about it I didn't 
realize that the hash (part of url after #) is not part of http request 
url, so there's no way to read it on server (which sucks).

-Matej
> 
> -Igor
> 
> 
> On 7/27/06, * Eelco Hillenius* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     Keep in mind that those model changing methods clone you model and
>     roll back to those old models when the back button is pushed. In my
>     experience this is rarely what you want, certainly not if you use a
>     database etc (in which case you would typically get the fresh data
>     from the database on each call).
> 
>     I can't really think of what else it might be... Are you absolutely
>     sure the models are updated with those ajax request? Does the input
>     validate?
> 
>     Eelco
> 
> 
>     On 7/26/06, Alexei Sokolov < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> wrote:
>      > Hello,
>      >
>      > I have small problem with ajaxsubmitlink.
>      >
>      > I have a page with a form which can be submitted by either a
>     regular button
>      > or an ajaxsubmitlink. In onSubmit method of ajaxsubmitlink I
>     update the
>      > form's model and display updated fields using
>      > AjaxRequestTarget.addComponent(). Regular button takes the user
>     to another
>      > page.
>      > Everything works great, except the following scenario: i click
>      > ajaxsubmitlink (which updates the form's model) and then click
>     regular
>      > submit button. From the page displayed I click 'back' button in
>     the browser.
>      > Now, my form has values which were on it BEFORE I clicked
>     ajaxsubmitlink. I
>      > decorated model updates with modelChanging/modelChanged calls,
>     what else is
>      > missing for proper back button functioning?
>      >
>      > Thank you,
>      > Alex
>      >
>      >
>     -------------------------------------------------------------------------
>      > Take Surveys. Earn Cash. Influence the Future of IT
>      > Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>      > opinions on IT & business topics through brief surveys -- and
>     earn cash
>      >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>      >
>      > _______________________________________________
>      > Wicket-user mailing list
>      > Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/wicket-user
>      >
>      >
>      >
> 
>     -------------------------------------------------------------------------
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys -- and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to