DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37704>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37704
------- Additional Comments From p.mouawad@ubik-ingenierie.com 2006-01-08 20:31 -------
What I need is to get for each property of the Form the validation status
(success of failure) and
No I can't do it with the methods you're talking about, here is the code I am using:
Set set = validatorResults.getPropertyNames();
Map propertyMap = new HashMap();
for (Iterator iter = set.iterator(); iter.hasNext();) {
String property= (String) iter.next();
propertyMap.put(property, Boolean.TRUE);
ValidatorResult result = validatorResults.getValidatorResult(property);
Map map = result.getActionMap();
for (Iterator iterator = map.values().iterator(); iterator.hasNext();) {
// Here I need to access ValidatorResult.ResultStatus
ValidatorResult.ResultStatus element = (ValidatorResult.ResultStatus)
iterator.next();
if (!element.isValid())
{
propertyMap.put(property, Boolean.FALSE);
break;
}
}
}
At this step, propertyMap contains what I need, for each property of the form
whether it's right or not.
Thank you.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org
|