ajaxValidator: '@Pattern' annotation using leads to ajax hanging + validation has
never passed.
-----------------------------------------------------------------------------------------------
Key: RF-3922
URL:
https://jira.jboss.org/jira/browse/RF-3922
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. Add intValue in "validator" bean following way:
@Pattern(regex="^\b1234\b*$")
private int intValue; + getter & setter.
Step 2. On the page validate input field with rich:ajaxValidator :
<h:panelGrid...
<h:outputLabel for="patternValue" value="Pattern(1234) validation:"
/>
<h:panelGroup>
<h:inputText value="#{validator.intValue}" id="patternValue">
<rich:ajaxValidator event="onchange"></rich:ajaxValidator>
</h:inputText>
<rich:message for="patternValue" showDetail="true"
showSummary="true" />
</h:panelGroup>
</h:panelGrid>
Step 3. Navigate on the page, input "1234" into "Pattern(1234)
validation:" field & click out the panelGrid.
Actual behavior:
Ajax status - "WORK" until submit. After submit following validation message
appears: "must match "^1234*$""
For more info see attached screenshot.
--
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