Hi, The approach with the custom filter should do it. Extend org.apache.wicket.feedback.ComponentFeedbackMessageFilter and return 'true' in #accept() only once, i.e. use a flag that a message is accepted and then reject all following. Make sure you use a new instance of this filter for every render, or reset the flag.
On Thu, Feb 21, 2013 at 10:30 AM, Patrick Davids <[email protected]>wrote: > Hi all, > I have a quite simple form, but with many many form feedback messages. > > I read several articles about FormComponentFeedbackFilter, overriding > form processing or conditional validations of forms etc.... but what I'm > not able to find out, is just how to show only one feedback message > (first occurence) of many possible messages the form is able to provide. > > Right now, I have 15 feedback boxes with messages on submit, and I would > like to have just one, the first one, which occurs caused by any/first > validation error. > > How can I do this (in a simple way)? > > Perhaps its so easy a cannot see the solution... but actually I need > help. *lol* > > kind regards > Patrick > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
