Provide easier way to get access to the validators from a Delegate
------------------------------------------------------------------
Key: TAPESTRY-375
URL: http://issues.apache.org/jira/browse/TAPESTRY-375
Project: Tapestry
Type: Improvement
Components: Framework
Versions: 4.0
Reporter: Scott Walter
Using the new validation framework to get a handle to the validators from a
Delegate requires coding this:
ValidatorsBinding vb = (ValidatorsBinding)
component.getBinding("validators");
Collection collection = (Collection) vb.getObject();
for(Iterator it = collection.iterator();it.hasNext();){
Validator validatorObject = (Validator) it.next();
}
Could a helper method be provided such as?: Collection getValidators(Component
component)
Also is there a constant for the "validators" binding? In case the name changes
in the future.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]