First of all a hidden field can't be read when you do a fresh of an url that is redirected after post
But now i think about it. That isn't possible
The render to buffer and then redirect to that buffer is impossible. That can't be done then anymore because
you can't sent an url to the browser that is just the homepage root or a mount point and then resolve it to the buffer that is
still waiting for it to render. We need some state in the url then. So  yes it could work also with refresh
But the big warning dialog of the browser will then popup "Resent post data" (or something like that).
Because we never can do a redirect after post anymore.
And all the links must do then also a post ofcourse. And refreshing the page will result in that action posted again. (a delete or save action....)
But then the url will always be the homepage or the mount point that is shown in the browser.

johan


On 10/21/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
No, what you guys are forgetting is that it has to work with a custom
resolving process. So the hidden field would be read before. It would
be part of wicket.request.IRequestCodingStrategy#decode(wicket.Request),
where the hidden field would be read and put in the RequestParameters
object. Something like that. If we want it, we could do it, that's the
morale.

Eelco


On 10/21/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
> even worse. If you refresh the page you will get the homepage....
> Because the only thing we put in the url is that key that then is in a
> hidden field...
>
> johan
>
>
>
> On 10/21/06, Matej Knopp <[EMAIL PROTECTED] > wrote:
> > I'm affraid that the hidden field would not be a very good alternative.
> > Wicket does redirect after post, if you are using redirect to
> > render/buffer, which IMHO 99,9% people do.
> >
> > So if you send the page id in hidden field and then refresh the page,
> > new page instance will be created.
> >
> > -Matej
> >
> > Eelco Hillenius wrote:
> > >> That is sending state back to the client - I'm talking about passing a
> > >> key back, just not in the URL.
> > >
> > > Yeah, I got that. What you mean is the part that now makes the path to
> > > the request target (like pagemap/ page(version)/ component combi).
> > >
> > >> But yes, you are showing that hidden
> > >> fields can be used.
> > >
> > > That was my point. The mechanism is the same except that in whereas
> > > client state saving would get the state back by deserializing, your
> > > proposal would get it by using that key etc. In fact, that part really
> > > isn't much more than configuring a custom target resolver.
> > >
> > >> I'm sure ways could be worked around to get links to
> > >> work (bit of _javascript_ to do a post via a hidden form).
> > >
> > > Yeah. Probably best by using postprocessing like that client state
> > > saving experiment doesn. That's the least intrusive and most robust
> > > imo.
> > >
> > >>> Of course, any contributions in the form of patches are always welcome
> > >>> and might serve as a good starting point for further discussion :)
> > >> Heh, well, wouldn't that be nice. I'd love to have some time to do some
> > >> open source coding. Instead I just make do with writing emails :-)
> > >
> > > Damn users and incubation mentors ;)
> > >
> > >
> > > Eelco
> > >
> > >
> -------------------------------------------------------------------------
> > > Using Tomcat but need to do more? Need to support web services,
> security?
> > > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> > >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> >
> -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> >
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to