Model Validator Engine duplicate listeners

Thank a lot Low for you review, I can catch the problem now the code validate if the ModelValidator exist into the array for this combination it is not add.

kind regards
Victor Perez
www.e-evolution.com
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2947607
This commit is contained in:
vpj-cd 2010-02-08 04:30:23 +00:00
parent bec8791241
commit f8e96741fa
1 changed files with 4 additions and 9 deletions

View File

@ -433,8 +433,10 @@ public class ModelValidationEngine
list.add(listener);
m_docValidateListeners.put(propertyName, list);
}
//else
// list.add(listener);
else if (!list.contains(listener))
{
list.add(listener);
}
} // addDocValidate
/**
@ -850,11 +852,4 @@ public class ModelValidationEngine
}
}
}
public Hashtable geDocValidateListeners()
{
return m_docValidateListeners;
}
} // ModelValidatorEngine