In 1.2.6, how can a stateless form be simulated?
On Thu, 2007-07-05 at 17:05 -0700, Igor Vaynberg wrote: > > On 7/5/07, Philip Wilkinson <[EMAIL PROTECTED]> wrote: > It would be nice if I could configure wicket to use cookies > (like the > servlet container) when enabled on the client to store the > information it > currently encodes in url (?wicket:interface=:0:::) > > i dont think you fully understand the impact of this change. a servlet > container only needs to set a cookie once per session - and its value > doesnt change. wicket would have to do this every request and set it > to different values. that means you can never have a regular link in > your html - it would _always_ have to be a link with a javascript > handler that sets the cookie. that is a big ugly drain. > > if you are really set on having that behavior, then like i said, use > stateless pages and forms. if that doesnt work then of course you can > plugin your own url coding strategy - but for what you want i would > not imagine it would be a trivial thing to write. > > -igor > > > > > > > Anyway thanks again for everyones input. > Philip Wilkinson. > > > igor.vaynberg wrote: > > > > On 7/4/07, Philip Wilkinson <[EMAIL PROTECTED]> > wrote: > >> > >> > >> 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. > > > > > > the cookie idea mightve worked, but it would mean that we > would have to > > rewrite every link to set the cookie, so essentially wicket > will not work > > without javascript. :| > > > > -igor > > > > > > > > > > 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 > >> > > > > > > ------------------------------------------------------------------------- > > 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#a11455607 > 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 > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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