[
https://issues.jboss.org/browse/GTNPORTAL-1502?page=com.atlassian.jira.pl...
]
Martin Weiler reopened GTNPORTAL-1502:
--------------------------------------
I'd like to reopen this issue, as it does not correct the issues for all languages.
http://source.jboss.org/changelog/gatein/?cs=4407 was already a good start, but in
addition the check 'if (s.matches(DATETIME_REGEX))' should be removed as well.
Reason: sdf.parse(s) will already fail with a ParseException if the input value is
incorrect.
s.matches(DATETIME_REGEX) on the other hand does not take into account that the date
format could not be using slashes. For instance, this is a valid German datetime value
'09.08.2011 17:19:23', which fails to match the not-localized DATETIME_REGEX
value.
DateTimeValidator validates incorrect with particular languages
---------------------------------------------------------------
Key: GTNPORTAL-1502
URL:
https://issues.jboss.org/browse/GTNPORTAL-1502
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.1.0-GA
Reporter: Khoi Nguyen
Assignee: Khoi Nguyen
Labels: sprint_39, worked
Fix For: 3.2.0-M01
Attachments: GTNPORTAL-1502.patch
With a particular language, French for example, if value of UIFormDateTimeInput field
having day value > 12, DateTimeValidator would return false.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira