Re: [Wicket-user] AjaxSubmitLink and history
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] 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
yeah this is know but, what he is exactly saying is that he altereddata on a form through an submit then go to then next pagethen 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 hason a url. Not the state when it is changed again. this i guess could onlybe done if we are saying to the browser that he has to make a new entry in the history.johanOn 7/31/06, Matej Knopp [EMAIL PROTECTED] wrote: Ajax calls and history just don't play nice together. Every link on pagehas a version information in it. If you make an ajax request, increasepage version and replace component on page, all links on page would point to previous version, so every link (except on the replacedcomponent) you click will revert the history.Therefore all ajax call must be unversioned. There's not much to doabout 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] 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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 ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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
Re: [Wicket-user] AjaxSubmitLink and history
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++ + '). AlexOn 7/31/06, Matej Knopp [EMAIL PROTECTED] wrote: Making new entries in history shouldn't be that hard, there are coupleof articles about it. Basicaly changing window.location.hash should dothat AFAIK.-MatejJohan 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] AjaxSubmitLink and history
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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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
Re: [Wicket-user] AjaxSubmitLink and history
So how do frameworks like Dojo and GWT do it? Do have back button support for Ajax... Eelco - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
On 29.7.2006, at 11.51, Eelco Hillenius wrote:So how do frameworks like Dojo and GWT do it? Do have back buttonsupport for Ajax...EelcoSome articles..http://dev2dev.bea.com/pub/a/2006/01/ajax-back-button.htmlhttp://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.htmlhttp://www.contentwithstyle.co.uk/Articles/38/fixing-the-back-button-and-enabling-bookmarking-for-ajax-apps Janne HietamäkiCemron Ltdhttp://www.cemron.com/ - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
easy ... they dont keep state in the session - because that is where the problem really is with this.-IgorOn 7/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote:So how do frameworks like Dojo and GWT do it? Do have back button support for Ajax...Eelco-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
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.-IgorOn 7/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Keep in mind that those model changing methods clone you model androll back to those old models when the back button is pushed. In myexperience this is rarely what you want, certainly not if you use adatabase 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 absolutelysure the models are updated with those ajax request? Does the inputvalidate?EelcoOn 7/26/06, Alexei Sokolov [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.phpp=sourceforgeCID=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 youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
I'm 100% sure that the model is updated because I can see correct value on the next page. Input is validated too.Ok, so it is not happening in internet explorer, only in firefox (I tested only those two).Alex On 7/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Keep in mind that those model changing methods clone you model androll back to those old models when the back button is pushed. In myexperience this is rarely what you want, certainly not if you use adatabase 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 absolutelysure the models are updated with those ajax request? Does the inputvalidate?EelcoOn 7/26/06, Alexei Sokolov [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.phpp=sourceforgeCID=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 youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
ajax calls dont alter the history. This can be programmed by doing it in _javascript_I think Matej knows more about that.johanOn 7/26/06, Alexei Sokolov [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 ITJoin 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.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
Maybe firefox really doesn't record those ajas changes to a page somehow.And it really goes back in the cache with the intial data that the url did had...johanOn 7/27/06, Alexei Sokolov [EMAIL PROTECTED] wrote: I'm 100% sure that the model is updated because I can see correct value on the next page. Input is validated too.Ok, so it is not happening in internet explorer, only in firefox (I tested only those two). Alex On 7/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Keep in mind that those model changing methods clone you model androll back to those old models when the back button is pushed. In myexperience this is rarely what you want, certainly not if you use adatabase 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 absolutelysure the models are updated with those ajax request? Does the inputvalidate?Eelco On 7/26/06, Alexei Sokolov [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.phpp=sourceforgeCID=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 youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=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 ITJoin 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.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitLink and history
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] 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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxSubmitLink and history
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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user