Chris Klinger created MYFACES-3687:
--------------------------------------
Summary: JSR-303: @NotEmpty not Working on UISelectMany
Key: MYFACES-3687
URL: https://issues.apache.org/jira/browse/MYFACES-3687
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 2.1.8
Environment: Windows 2008, JDK7_u11
Reporter: Chris Klinger
The call of callValidators(FacesContext, UIInput, Object) in
javax.faces.component.UISelectMany.validateValue(FacesContext, Object) is
implemented as
{code}
// run the validators only if there are item values to validate
if (hasValues)
{
_ComponentUtils.callValidators(context, this, convertedValue);
}
{code}
compared to
{code}
if (!isEmpty || shouldValidateEmptyFields(context))
{
_ComponentUtils.callValidators(context, this, convertedValue);
}
in javax.faces.component.UIInput.validateValue(FacesContext, Object).
My guess is, that shouldValidateEmptyFields(context) have to be also checked OR
connected with hasValues in UISelectMany to catch not empty validators like
@NotEmpty or @Size(min=1)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira