Hi, Once rendered any feedback message (error, info, warning, ...) won't be rendered second time! You should use custom feedback message cleaner [1] to preserve the ones you want to show several times.
1. https://github.com/apache/wicket/blob/3fd9c9836e5035ed18b75d31e589b6aeac1740e4/wicket-core/src/main/java/org/apache/wicket/settings/ApplicationSettings.java#L255 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jun 7, 2017 at 7:26 PM, thewicketguy1992 <[email protected]> wrote: > I can't post any code since its proprietary but i was hoping someone has > run > into this issue. > > I have a wicket page which contains a form. The issue I'm seeing happens > about 20% of the time so I'm wondering if its some kind of timing issue. > Basically when a field in the form fails validation, it will display the > error message at the top of the form. But sometimes whats happening is that > the error message will show, and then it disappears. One solution I tried > but doesn't help much is : saving the error messages in a session object > (the logic is in the onSubmit method) and then in the overridden > onBeforeRender method, check to see if an error message is in the session > and populate it to the feedback panel. Like i said it only improved > performance marginally. I think its some kind of ajax timing issue going on > i just don't know what to do now > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/Feedback-panel-is-wiping-error-messages-upon- > rerendering-tp4677987.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
