Thanks for that Dave. It does make sense. But I know the values are stored in the session pagemap, so I'd like to be able to get them from there. I was hoping that a combination of a bookmarked url, and maybe cookie or hidden field, managed by wicket, would be enough for wicket not to stray from my 'nice' bookmarked url, and not to expose wickets inner workings via a url. Cheers.
David Leangen-8 wrote: > > > Philip, > > You need to also include all your form values in the PageParamters, and > parse those values in your page, filling each of the fields with those > values. > > Does that make sense? > > > So, your url would be something like: > > /myPage?field1=blah&checkbox1=true&... > > > Cheers, > Dave > > > > On Tue, 2007-07-03 at 13:48 -0700, Philip Wilkinson wrote: >> Hi, >> >> When my form validation fails, the page is redisplayed with the default >> url >> with all its wicket:interface stuff. >> I'd rather this didn't happen as I've bookmarked the page, and would >> prefer >> to have the bookmarked url redisplayed. (the bookmarked url was initially >> displayed for the page) >> >> I've tried overriding Form.onError() { setResponsePage(WelcomePage.class, >> new PageParameters()); } >> and that got me my nice bookmarked url, but lost all my form field >> values. >> Obviously creating a new page instance. >> >> I've also tried Form.onError() { setResponsePage(WelcomePage.this); } >> >> Is it possible with wicket to only have the bookmarkable urls visible, >> without exposing the wicket internals in the url? >> >> Thanks in advance >> Philip Wilkinson. >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Can-I-get-a-%27Nice-URL%27-when-form-validation-fails--tf4020865.html#a11429922 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user