[richfaces-issues] [JBoss JIRA] (RF-12223) rich:validator: localization problems with dates and patterns

Jiří Štefek (JIRA) jira-events at lists.jboss.org
Wed May 2 05:15:19 EDT 2012


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

Jiří Štefek updated RF-12223:
-----------------------------

               Summary: rich:validator: localization problems with dates and patterns  (was: Metamer: richValidator: Fix "set correct values" button )
           Description: 
When you use other locale than english (tested with czech cs_CZ) the validator cannot read input Date with pattern "dd MMM yyyy".
More in _Steps to reproduce_. 

  was:
"set correct values" button sets wrong formatted Date in input fields. This button is placed in pages:
* http://localhost:8080/metamer/faces/components/richValidator/wrapping.xhtml
* http://localhost:8080/metamer/faces/components/richValidator/jsr303.xhtml
* http://localhost:8080/metamer/faces/components/richValidator/csv.xhtml

    Steps to Reproduce: 
Can be reproduced in Metamer.

# Set your locale to other than english (tested with czech)
# Deploy metamer and open http://localhost:8080/metamer/faces/components/richValidator/wrapping.xhtml .
# Click on button "set correct values".
# Click on submit command button h/a4j.
Expected: no error message.
Have: 2 validation error messages for date input fields *Date, past* and *Date, future*.

Input and error example: in field *past* the input value was *28 Apr 2012* , the error message after submit is: *past: '28 Apr 2012' could not be understood as a date. Example: 2 V 2012*


Other Metamer pages with validator and with the same bug:
* http://localhost:8080/metamer/faces/components/richValidator/wrapping.xhtml
* http://localhost:8080/metamer/faces/components/richValidator/jsr303.xhtml
* http://localhost:8080/metamer/faces/components/richValidator/csv.xhtml

  was:
# Deploy metamer and open http://localhost:8080/metamer/faces/components/richValidator/wrapping.xhtml .
# Click on button "set correct values".
# Click on command button h/a4j.
Expected: no error message.
Have: 2 validation error messages: 
 ** past: '*date*' could not be understood as a date. 
 ** future: '*date*' could not be understood as a date. 

     Affects Version/s: 4.2.1.Final
           Environment: 
RichFaces 4.2.1.SNAPSHOT
Metamer 4.2.1.SNAPSHOT
Mojarra 2.1.7-jbossorg-1
JBoss AS 7.1.1.Final
OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux
Firefox 12.0 @ Linux x86_64

  was:
RichFaces 4.2.1.SNAPSHOT
Metamer 4.2.1.SNAPSHOT
Mojarra 2.1.7-jbossorg-1
JBoss AS 7.1.1.Final
OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux
Firefox 11.0 @ Linux x86_64


    
> rich:validator: localization problems with dates and patterns
> -------------------------------------------------------------
>
>                 Key: RF-12223
>                 URL: https://issues.jboss.org/browse/RF-12223
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.2.1.Final
>         Environment: RichFaces 4.2.1.SNAPSHOT
> Metamer 4.2.1.SNAPSHOT
> Mojarra 2.1.7-jbossorg-1
> JBoss AS 7.1.1.Final
> OpenJDK Runtime Environment 1.6.0_24-b24 @ Linux
> Firefox 12.0 @ Linux x86_64
>            Reporter: Jiří Štefek
>            Assignee: Jiří Štefek
>
> When you use other locale than english (tested with czech cs_CZ) the validator cannot read input Date with pattern "dd MMM yyyy".
> More in _Steps to reproduce_. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list