if (validatorForm != null)
{
final java.util.List validatorFields = validatorForm.getFields();
for (final Iterator iterator = validatorFields.iterator(); iterator.hasNext();)
{
final Field field = (Field)iterator.next();
// we need to make it match the name of the id on the jsf components (if its nested).
final String fieldProperty = StringUtilsHelper.lowerCamelCaseName(field.getProperty());
if (componentId.equals(fieldProperty))
{
for (final Iterator dependencyIterator = field.getDependencyList().iterator();
dependencyIterator.hasNext();)
{
final String dependency = (String)dependencyIterator.next();
final ValidatorAction action = JSFValidator.getValidatorAction(dependency);
if (action != null)
{
final JSFValidator validator = new JSFValidator(formId, action);
final Arg[] args = field.getArgs(dependency);
if (args != null)
{
for (final Iterator varIterator = field.getVars().keySet().iterator(); varIterator.hasNext();)
{
final String name = (String)varIterator.next();
validator.addParameter(
name,
field.getVarValue(name));
}
validator.setArgs(ValidatorMessages.getArgs(
dependency,
field));
this.addValidator(