user2340939
user2340939

Reputation: 1991

Prevent deleting feedback messages on refresh in Wicket

I would like to maintain the error messages, which are generated at the page load up, even when the user refreshes the page. I can let them stay by saving them globally and then reenter them in the FeedBackPanel inside of page's renderHead method, but when I get back to the previous page for example, the error is still there, until I refresh the page.

Upvotes: 2

Views: 193

Answers (1)

svenmeier
svenmeier

Reputation: 5681

You can register a IFeedbackMessageFilter with IApplicationSettiongs#setFeedbackMessageCleanupFilter() - this way you can control which messages will be cleaned up after each request.

Upvotes: 2

Related Questions