[richfaces-issues] [JBoss JIRA] Commented: (RF-10977) validation should not be processed when @required=false and input is empty
Ilya Shaikovsky (JIRA)
jira-events at lists.jboss.org
Mon May 9 08:22:18 EDT 2011
[ https://issues.jboss.org/browse/RF-10977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600654#comment-12600654 ]
Ilya Shaikovsky commented on RF-10977:
--------------------------------------
consider JSF 2 optional validation of empty field. IF it's true by default - seems our validator works as expected.
> 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