Feature Requests item #1538793, was opened at 2006-08-11 18:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1538793&group_id=119783
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Joni Suominen (inhuman)
Assigned to: Nobody/Anonymous (nobody)
Summary: Collect IFormValidators for form by traversing children
Initial Comment:
Form should automatically collect IFormValidators by
traversing its children which implement IFormValidator
interface:
private List<IFormValidator> collectFormValidators()
{
final List<IFormValidator> formValidators = new
ArrayList<IFormValidator>();
visitChildren(IFormValidator.class, new IVisitor()
{
public Object component(final Component
component)
{
IFormValidator validator =
(IFormValidatorProvider) component;
formValidators.add(validator);
return CONTINUE_TRAVERSAL;
}
});
return formValidators;
}
The collected IFormValidators should be validated in
conjuction with IFormValidators which have been added
to a Form.
Relevant discussion can be found from:
http://thread.gmane.org/gmane.comp.java.wicket.user/15627/focus=15627
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1538793&group_id=119783
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop