Re: way to traverse / get all form validators
Sure I can - it's reported as http://issues.apache.org/jira/browse/WICKET-1592 WICKET-1592 Michal Eelco Hillenius wrote: > > Good point. Looks to me like it is something we overlooked. We should > probably add a method to get the form validators of a form. > > Could you open an RFE for that please? > > Eelco > > On Mon, May 5, 2008 at 2:31 AM, michalb_cz <[EMAIL PROTECTED]> wrote: >> >> thank you for response, but I need it for Form object - to get all >> IFormValidator objects associated with the Form object - through >> form.add(IFormValidator) >> -- >> View this message in context: >> http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.html >> >> >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17080296.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way to traverse / get all form validators
Good point. Looks to me like it is something we overlooked. We should probably add a method to get the form validators of a form. Could you open an RFE for that please? Eelco On Mon, May 5, 2008 at 2:31 AM, michalb_cz <[EMAIL PROTECTED]> wrote: > > thank you for response, but I need it for Form object - to get all > IFormValidator objects associated with the Form object - through > form.add(IFormValidator) > -- > View this message in context: > http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.html > > > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way to traverse / get all form validators
thank you for response, but I need it for Form object - to get all IFormValidator objects associated with the Form object - through form.add(IFormValidator) -- View this message in context: http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17054006.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way to traverse / get all form validators
On Fri, May 2, 2008 at 11:56 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote: > there is > final List getValidators() {...} on FormComponent which you can use like this: Use a visitor, like: visitChildren(FormComponent.class, new IVisitor() { public Object component(final Component c) { FormComponent fc = (FormComponent)c; List validators = c.getValidators(); ... } } Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: way to traverse / get all form validators
there is final List getValidators() {...} on FormComponent Gerolf On Fri, May 2, 2008 at 4:17 PM, michalb_cz <[EMAIL PROTECTED]> wrote: > > Is there some way how to traverse all validators which are associated > (added > through the add(IValidator) method) with the form? I look for something > like > get(IValidator) [like List.get(Object obj) method] or List > getValidators() methods on Form component > -- > View this message in context: > http://www.nabble.com/way-to-traverse---get-all-form-validators-tp17020385p17020385.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >