You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Alex Savitsky (JIRA)" <de...@myfaces.apache.org> on 2006/12/18 22:55:21 UTC

[jira] Created: (MYFACES-1512) Validators are not called for blank input fields

Validators are not called for blank input fields
------------------------------------------------

                 Key: MYFACES-1512
                 URL: http://issues.apache.org/jira/browse/MYFACES-1512
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.4
            Reporter: Alex Savitsky


When a validator is attached to an input field, using the backing bean validator method:

<h:inputText id="accountNumber" value="#{unitBean.entity.accountNumber}" validator="#{unitBean.validateAccountNumber}" />

the validator is not called if the field is blank. This limits the usefulness of validators, making it impossible to implement validation rules for fields that are only required under certian conditions (in my case the account # was only required for certain selections from another control in the form)

-- 
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