[richfaces-issues] [JBoss JIRA] Updated: (RF-4791) Calendar with datePattern from resourcebundle doesn't validate

Jay Balunas (JIRA) jira-events at lists.jboss.org
Thu Jan 6 14:19:20 EST 2011


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

Jay Balunas updated RF-4791:
----------------------------

    Assignee:     (was: Andrey Markhel)


> Calendar with datePattern from resourcebundle doesn't validate
> --------------------------------------------------------------
>
>                 Key: RF-4791
>                 URL: https://issues.jboss.org/browse/RF-4791
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input, regression
>    Affects Versions: 3.2.2
>            Reporter: Edwin van der Elst
>             Fix For: Future_3.X
>
>
> See also:
> http://www.jboss.com/index.html?module=bb&op=viewtopic&t=143930
> I use:
> <rich:calendar value="#{person.birthDate}" datePattern="#{messages['datepattern']}/>
> The date *is* formatted according to the pattern, but on submitting the form, the validation fails:
>  '04-12-1968' could not be understood as a date. Example: 29-10-2008
> Note: the example also uses the correct datePattern
> If I hardcode the pattern in the template (datePattern='dd-MM-yyyy'), the validation succeeds (but then the pattern is not localized anymore).
> I tried a4j:loadBundle, and referencing that instance (this was a suggestion from the forum entry). It resulted in the same error message.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list