On Fri, Nov 23, 2007 at 08:20:27PM +0100, Murat Yücel wrote:
> Hi John
> 
> Thanks for the help it works like a dream. I just have one more question.
> I have some problem with the feedback filtering. Is it possible to have 2
> feedback messages on the page. Well it is possible :). Found this:
> http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.html
> 
> But when i press on of the buttons both feedback messages include errors.
> They are both visible at the same time. I was hoping that only one of them 
> would
> be visible. I could of course make a isVisible flag but it is more if
> there is a correct
> wicket way to do it :)
> 
> /Murat
> 

Do you want (a) to display one or the other feedback panel depending on
whether the parent or child form was submitted? Or (b) should all messages
from the child form always go to one feedback panel, and the rest to
another?

If (a), I would keep a flag on my page that tracked which form was
submitted, and override isVisible on each feedback panel to look a the
flag.

If (b), you need to implement an appropriate IFeedbackMessageFilter on
each feedback panel.

jk

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to