myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yee-Wah Lee (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Updated] (TRINIDAD-2133) Support Thai Buddhist calendar in client DateTimeConverter
Date Tue, 06 Sep 2011 22:53:10 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yee-Wah Lee updated TRINIDAD-2133:
----------------------------------

    Status: Patch Available  (was: Open)

> Support Thai Buddhist calendar in client DateTimeConverter
> ----------------------------------------------------------
>
>                 Key: TRINIDAD-2133
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2133
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>    Affects Versions: 2.0.0
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>         Attachments: branch121260_2133.diff, trunk_2133_ThaiDateTimeConverter.diff
>
>
> 1. Create and run the following jspx
> <tr:inputText is d="dt" autoSubmit="true" value="#{input.date}">
>                 <tr:convertDateTime locale="th_TH"/>
>                 </tr:inputText>
>                 <tr:outputText value="#{input.date}" partialTriggers="dt">
>                 <tr:convertDateTime locale="en_US"/>
>                 </tr:outputText>
> 2. The page will display the date using the Thai Buddhist Calendar, then the date in
US format (which uses GregorianCalendar on the server side). The Thai Buddhist calendar is
offset by 543 years from the Gregorain, e.g. the inputText shows   22/8/2554 and the outputText
shows 8/22/2011 .
> 3. Update the inputText to 29/2/2555 which is equivalent to 2/29/2012 Gregorian, a valid
date. However this gives an error, "Enter a valid date or time".
>                 

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

        

Mime
View raw message