I tried 'window.location.hash' thingy. I add +1 to window.location.hash every time user clicks the ajax button. I can see that browser's url is changing. The form still have the previous value after back button pressed from the following page. I tried to place ajaxrequesttarget.addJavascript() before addComponent(), but it seems like wicket is ordering the calls so addComponen() is always before addJavascript("window.location.hash='" + counter++ + "'").

Alex

On 7/31/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
Making new entries in history shouldn't be that hard, there are couple
of articles about it. Basicaly changing window.location.hash should do
that AFAIK.

-Matej

Johan Compagner wrote:
> yeah this is know but, what he is exactly saying is that he altered
> data on a form through an submit then go to then next page
> then press the back button (now wicket doesnt come into play at all)
> and it sees the values of the form before the ajax submit.
> This only means that the browser only caches the state that it initially has
> on a url. Not the state when it is changed again. this i guess could only
> be done if we are saying to the browser that he has to make a new entry
> in the history.
>
> johan
>
>
> On 7/31/06, *Matej Knopp* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Ajax calls and history just don't play nice together. Every link on page
>     has a version information in it. If you make an ajax request, increase
>     page version and replace component on page, all links on page would
>     point to previous version, so every link (except on the replaced
>     component) you click will revert the history.
>
>     Therefore all ajax call must be unversioned. There's not much to do
>     about it.
>
>     -Matej
>
>     Johan Compagner wrote:
>      > ajax calls dont alter the history. This can be programmed by
>     doing it in
>      > _javascript_
>      > I think Matej knows more about that.
>      >
>      > johan
>      >
>      >
>      > On 7/26/06, *Alexei Sokolov * < [EMAIL PROTECTED]
>     <mailto: [EMAIL PROTECTED]>
>      > <mailto:[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 >
>      >     <
>     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>
>      >     <mailto:Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>>
>      >     https://lists.sourceforge.net/lists/listinfo/wicket-user
>      >     <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
>     < 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

-------------------------------------------------------------------------
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