If there are any errors, call will land in onError of Form. There u just check if the current request target is ajaxrequesttarget. if so and u don't have the exact reference to feedbackpanel or it is somewhere deep down the hierarchy then right a visitor which will traverse the heirarchy and attach all feedbackpanels to target.
FYI: look up visitChildren(Class clazz, IVisitor visitor) in MarkupContainer class. Implement ur visitor accd to ur needs. Make clazz=FeedbackPanel.class -swaroop On 10/25/07, wheleph <[EMAIL PROTECTED]> wrote: > > > Hello everyone! > > My application has a lot of ajax components. And every time validation > error > occurs I need to add my FeedbackPanel to AjaxRequestTarget. Is there a way > to do it automatically? I mean to add my FeedbackPanel to every ajax > response > > wheleph > -- > View this message in context: > http://www.nabble.com/Intercept-AjaxRequestTarget-tf4691130.html#a13407618 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
