if you do a submit and validation erros happening then no new pag is
created but the page is reused. but you dont have a problem then
because the form will have all the values posted.But if the user does
a refresh then in default wicket setting, you dont do a new post, one
a page request to the current page because we use redirect_after_post
(in a special wicket way)

On 3/29/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
> > Only if the request was from a form and when you are not using the
> > render-to-buffer strategy.
>
> Sorry Eelco, would you be so kind as to explain this, I'm new to wicket and
> still a bit ignorant of its internals.
> I see two access points to the form page:
> 1) First time you enter the page.
> 2) Resubmissions due to validation errors.
> I'm assuming (maybe incorrectly) that during (1) a new form instance will be
> instantiated, so a new model will be created with it that will return a
> model object from the repository. Then, during (2), form contents will be
> posted and bound to a fresh model object which was created from the
> deserialized LoadableDetachableModel. Under this assumptions I see no
> problem regarding reloads of the page in state (1) or in state (2).
> But maybe you mean that the model is instantiated when you create the page
> (not the form) so there will be just one moment satisfying (1) during the
> entire session. Sorry if this is all too obvious but take into account that
> I'm coming from a different controller/action mindset where the session is
> barely used.
>
> Cheers,
> Carlos
>
> On 3/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > > > and if a user just refreshes the page? or you use it as a response
> > > > page somewhere else? then suddenly everything is empty?
> > >
> > > If the user refreshes the page the previous request parameters will be
> > > reposted and will overwrite the fresh form model object properties, so
> > he
> > > will see the page as was before his last non-submitted changes.
> >
> >
> > 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.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > 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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to