ajaxValidator: using '@Future' & '@Past' annotations always leads to
failed validation.
---------------------------------------------------------------------------------------
Key: RF-3926
URL:
https://jira.jboss.org/jira/browse/RF-3926
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 ajaxValidator on the page:
...
<h:outputLabel for="dateValue" value="Future validation:" />
<h:panelGroup>
<h:inputText value="#{validator.dateValue}" id="dateValue">
<rich:ajaxValidator event="onchange"></rich:ajaxValidator>
</h:inputText>
<rich:message for="dateValue" showDetail="true"
showSummary="true" />
</h:panelGroup>...
Step 2. Define dateValue in bean:
@Future(message="Future validation failed!")
private String dateValue;
Inside constructor:
.. this.dateValue = (new Date()).toString();
+getter & setter for this field.
Step 3. Navigate on the page, set dateValue to currentDate+1 & verify validation.
Actual behavior:
Validation failed. The same issue for @Past annotation.
--
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