dateTimeRangeValidator: client side error messages don't match server side 
error messages, need converter
---------------------------------------------------------------------------------------------------------

                 Key: ADFFACES-301
                 URL: http://issues.apache.org/jira/browse/ADFFACES-301
             Project: MyFaces ADF-Faces
          Issue Type: Bug
            Reporter: Gabrielle Crawford


The client side validator for dateTimeRangeValidator is not formatting the 
error message values correctly.

In a field with a date that looks like "11/21/2008" 

- server error message: "The date entered, "11/21/2008", is not within the 
range of valid dates 1/1/2006 and 12/31/2007."
- client error message:  "The date entered, "Fri Nov 21 2008 16:00:00 GMT-0800 
(Pacific Standard Time)", is not within the range of valid dates Sun Jan 01 
2006 00:00:00 GMT-0800 (Pacific Standard Time) and Mon Dec 31 2007 00:00:00 
GMT-0800 (Pacific Standard Time)."

Basically in order to give the correct validation message you need the 
converter. If the client side api's for validator don't support a way to a 
access the converter we will probably need to pass the converter as a param to 
the validate method.

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

        

Reply via email to