On Thu, 11 Sep 2008, Ajayi Yinka wrote:
> > Thomas Lutz wrote:
> > >
> > > I've a form with some validation added, nothing special (Required, Email
> > > check). When I submit the form I get the validation messages in the
> > > FeedbackPanel as expected, but :-), hitting f5 for a page refresh after
> > > the submit removes them (don't ask why refresh after submit... users of
> > > my webapp do stuff like this :-)).
> > > The form is not submitted, only redisplayed, but the validation messages
> > > are missing.
> > > Is there something I can do about this ?

I think that what happens is that

a) the normal POST

b) the redirect to GET after POST [1]

c) feedback messages are cleared from session on detaching 
   the request [2]

d) refresh does the GET again, and the flash feedback
   messages cannot be displayed, because they are already 
   cleared from the session

The solution is left as an exercise for the reader ;) 
Because now I must get going...

Best wishes,
Timo


[1] http://en.wikipedia.org/wiki/Post/Redirect/Get 
[2]
http://fisheye6.atlassian.com/browse/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/RequestCycle.java?r=645227#l1058

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to