[richfaces-issues] [JBoss JIRA] Resolved: (RF-10977) validation should not be processed when @required=false and input is empty

Jay Balunas (JIRA) jira-events at lists.jboss.org
Thu May 26 16:43:01 EDT 2011


     [ https://issues.jboss.org/browse/RF-10977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jay Balunas resolved RF-10977.
------------------------------

    Resolution: Rejected


I agree with Ilya, unfortunately this is an artifact of JSF specification.  "required" should really be deprecated at this point as validation, and bean validation take its place.

> validation should not be processed when @required=false and input is empty
> --------------------------------------------------------------------------
>
>                 Key: RF-10977
>                 URL: https://issues.jboss.org/browse/RF-10977
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.0.1.Milestone1
>         Environment: Ubuntu 10.04, Jboss 5.1.0 GA, Mojarra 2.0.4, Richfaces 4 (extracted from richfaces-showcase.war of 2011-04-28)
>            Reporter: Nikhil Patil
>
> <h:inputText
>             id="txtContact" 
>             value="#{user.contact}"
>             required="false"
>             validatorMessage="Invalid phone number"
>             maxlength="10">
>               <f:validateRegex pattern="\d{10}" />
>               <rich:validator/>
> </h:inputText>
> Regex validation should not be processed when @required=false and input is empty

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list