Hi Pedro Santos

I hadn't seen your answer, sorry. 

In between, I had time again to look into my issue. 

Actually, the root of it was about not displaying the feedback message
twice: once in the general feedback panel and once close from the generating
component.

As such, while helpful, your solution didn't help there.

But I now found this "workaround" for this:
  add(new FeedbackPanel("plainFeedback", new IFeedbackMessageFilter()
            {

                @Override
                public boolean accept(final FeedbackMessage message)
                {
                    List<IBehavior> behaviors =
message.getReporter().getBehaviors();
                    for (IBehavior behavior : behaviors)
                    {
                        if (behavior instanceof FeedbackHighlightBehavior)
                        {
                            return false;
                        }
                    }
                    return true;
                }
            }));

=> the feedback panel doesn't display the message twice :)

I have yet to put this change in production, where maybe I would have to do
extra check (like to check that the reporter component is effectively
visible in order to be sure of the feedback message display), but at least
I've found a way to go.

:)

++
joseph


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Display-component-feedback-message-once-safety-net-renders-them-always-before-tp3068969p3167130.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to