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

Work on RF-3921 started by Alexander Smirnov.

> ajaxValidator: '@CreditCardNumber' validation failed in case "1234", but 
> passed in case "abcdef".
> -------------------------------------------------------------------------------------------------
>
>                 Key: RF-3921
>                 URL: https://jira.jboss.org/jira/browse/RF-3921
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>         Environment: IE6, IE7, FF 3.0, Safari 3.1, Opera 9.5(3.2.2.BETA1)
>            Reporter: Mikhail Vitenkov
>            Assignee: Alexander Smirnov
>             Fix For: 3.2.2
>
>
> Step 1. Use ajaxValidator on the page following way:
> <h:outputLabel for="creditValue" value="Credit card validation:" />
>               <h:panelGroup>
>               <h:inputText value="#{validator.creditValue}" id="creditValue">
>                       <rich:ajaxValidator 
> event="onchange"></rich:ajaxValidator>
>               </h:inputText>
>               <rich:message for="creditValue" showDetail="true" 
> showSummary="true" />
>               </h:panelGroup>
> Step 2. "validator" bean should contains 'creditValue' field:
> ...
> @CreditCardNumber(message="Credit card validation failed!")
> private String creditValue; + getter & setter for this field.
> Step 3. On the page input "123" - validation message appears;
> Step 4. Input "abcdef"
> Actual behavior:
> Validation message disappears. But "abcdef" isn't valid value for credit card 
> number. So there is no checking about digits presence occurs. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
richfaces-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to