You forget the redirect after post, or even when nothing is submitted.
First render of the page.... refresh...

Martijn

On 3/29/07, Carlos Pita <[EMAIL PROTECTED]> wrote:
>
>
>
> > 3) refresh of the page (is a get, press f5 in your browser)
>
>  (1) and (2) were intended to be states where a reload could be attempted.
> There is no point in adding a third explicit refresh item. But anyway, not
> only f5 but C-R and View/Reload (I'm using firefox) do a reload, which
> consists of repeating the last request, which could be a post or a get,
> depending on the method you specify for your form; in any case the form
> contents will be resubmitted. Of course, this doesn't mean that things will
> work as I first suggested/asked.
>
> Cheers,
> Carlos
>
>
> > Martijn
> >
> > 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
> > >
> > >
> >
> >
> > --
> > Learn Wicket at ApacheCon Europe: http://apachecon.com
> > Join the wicket community at irc.freenode.net: ##wicket
> > Wicket 1.2.5 will keep your server alive. Download Wicket now!
> > http://wicketframework.org
> >
> >
> -------------------------------------------------------------------------
> > 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
>
>


-- 
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.5 will keep your server alive. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
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