here is how it works: if the message is reported against session it is held until rendered, if the message is reported against a component it is held only during the request in which it has been reported. wicket is smart enough to look at the render strategy and not clear messages during the redirect between post and get, so i am not sure why this is not working for you as it is working fine in the forminput wicket example.
if you want to change this behavior you can override session.cleanupFeedbackMessages() and implement whatever behavior you wish. by the way, this is all very apparent from the code. i suggest you learn your ide and useful ide tools such as call hieararchy, ctrl+click to follow, etc. -igor On Thu, Sep 11, 2008 at 8:43 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
