myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Guenther (JIRA)" <>
Subject [jira] Commented: (TRINIDAD-61) tr:validateDateTimeRange validation fails on last day of valid range
Date Thu, 14 Jun 2007 09:12:26 GMT


Thorsten Guenther commented on TRINIDAD-61:

tr:convertDateTime is not a workaround. Perhaps JavaScript was off due to debugging as I tried
it at first. Sorry for confusion.

> tr:validateDateTimeRange validation fails on last day of valid range
> --------------------------------------------------------------------
>                 Key: TRINIDAD-61
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components, Facelets
>            Reporter: Thorsten Guenther
>         Attachments: screenshot-1.jpg
> When used without an given converter (tr:convertDateTime), a tr:validateDateTimeRange's
javaScript-validation fails (when used with facelets? not tested.) if the last day of the
valid date-range was choosen in the tr:inputDate. (see screenshot). Debugging the javaScript
shows that the select date was converted into for example "20.09.2007 01:00:00" (depending
on timeZone) and is checked against "20.09.2007 00:00:00". So the choosen date is bigger then
the max date and the validation fails.
> Using a ValueBinding and setting the maxdate to "20.09.2007 23:59:59" does not solve
the problem since the time component seems to be cut of from maxDate for javaScript validation.
> A <tr:convertDateTime pattern="dd.MM.yyyy"/> is a workaround.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message