[richfaces-issues] [JBoss JIRA] Created: (RF-3921) ajaxValidator: '@CreditCardNumber' validation failed in case "1234", but passed in case "abcdef".
Mikhail Vitenkov (JIRA)
jira-events at lists.jboss.org
Wed Jul 16 06:49:22 EDT 2008
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: Nick Belaevski
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
More information about the richfaces-issues
mailing list