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

Reply via email to