You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org> on 2007/11/02 21:59:50 UTC
[jira] Created: (TRINIDAD-797) Date-picker does not use the
converter's locale attribute if it differs from page locale
Date-picker does not use the converter's locale attribute if it differs from page locale
----------------------------------------------------------------------------------------
Key: TRINIDAD-797
URL: https://issues.apache.org/jira/browse/TRINIDAD-797
Project: MyFaces Trinidad
Issue Type: Bug
Components: Components
Reporter: Yee-Wah Lee
Priority: Minor
1. Suppose the page locale is en_us. Add an inputDate to the jspx with a converter of a different locale, e.g.
<tr:inputDate id="mdf6" value="#{date.date4}"
label="attached converter">
<tr:convertDateTime type="date" dateStyle="full" locale="fr_FR"/>
</tr:inputDate>
2. Run the page - the inputDate shows up with the text in french, as expected.
3. Open the picker, and pick a different date.
4. When the picker closes, the inputDate has been updated with the Date in English.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-797) Date-picker does not use the
converter's locale attribute if it differs from page locale
Posted by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539702 ]
Yee-Wah Lee commented on TRINIDAD-797:
--------------------------------------
1. The client DateTimeConverter makes use of the LocaleElements_<locale>.js file, but only the locale elements for the page are sent down. Hence, the client converter's attempt to convert the Date into a String uses the wrong locale data.
2 . Possibly because of this, the server code which generates the client DateTimeConverter turns off client conversion, see trinidad-internal\..\DateTimeConverter#getClientConversion() which returns null.
> Date-picker does not use the converter's locale attribute if it differs from page locale
> ----------------------------------------------------------------------------------------
>
> Key: TRINIDAD-797
> URL: https://issues.apache.org/jira/browse/TRINIDAD-797
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Reporter: Yee-Wah Lee
> Priority: Minor
>
> 1. Suppose the page locale is en_us. Add an inputDate to the jspx with a converter of a different locale, e.g.
> <tr:inputDate id="mdf6" value="#{date.date4}"
> label="attached converter">
> <tr:convertDateTime type="date" dateStyle="full" locale="fr_FR"/>
> </tr:inputDate>
> 2. Run the page - the inputDate shows up with the text in french, as expected.
> 3. Open the picker, and pick a different date.
> 4. When the picker closes, the inputDate has been updated with the Date in English.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TRINIDAD-797) Date-picker does not use the
converter's locale attribute if it differs from page locale
Posted by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646771#action_12646771 ]
Yee-Wah Lee commented on TRINIDAD-797:
--------------------------------------
Please see TRINIDAD-1258 for an amendment to this fix (in how the locale parameter is added)
> Date-picker does not use the converter's locale attribute if it differs from page locale
> ----------------------------------------------------------------------------------------
>
> Key: TRINIDAD-797
> URL: https://issues.apache.org/jira/browse/TRINIDAD-797
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Reporter: Yee-Wah Lee
> Priority: Minor
> Fix For: 1.0.5-core
>
> Attachments: trin11_797_deferredRenderers.patch, trin12_797_deferredRenderers.patch, Trinidad11_797.patch
>
>
> 1. Suppose the page locale is en_us. Add an inputDate to the jspx with a converter of a different locale, e.g.
> <tr:inputDate id="mdf6" value="#{date.date4}"
> label="attached converter">
> <tr:convertDateTime type="date" dateStyle="full" locale="fr_FR"/>
> </tr:inputDate>
> 2. Run the page - the inputDate shows up with the text in french, as expected.
> 3. Open the picker, and pick a different date.
> 4. When the picker closes, the inputDate has been updated with the Date in English.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TRINIDAD-797) Date-picker does not use the
converter's locale attribute if it differs from page locale
Posted by "Gabrielle Crawford (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TRINIDAD-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabrielle Crawford resolved TRINIDAD-797.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.5-core
patch applied in revision: 595495
> Date-picker does not use the converter's locale attribute if it differs from page locale
> ----------------------------------------------------------------------------------------
>
> Key: TRINIDAD-797
> URL: https://issues.apache.org/jira/browse/TRINIDAD-797
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Reporter: Yee-Wah Lee
> Priority: Minor
> Fix For: 1.0.5-core
>
> Attachments: Trinidad11_797.patch
>
>
> 1. Suppose the page locale is en_us. Add an inputDate to the jspx with a converter of a different locale, e.g.
> <tr:inputDate id="mdf6" value="#{date.date4}"
> label="attached converter">
> <tr:convertDateTime type="date" dateStyle="full" locale="fr_FR"/>
> </tr:inputDate>
> 2. Run the page - the inputDate shows up with the text in french, as expected.
> 3. Open the picker, and pick a different date.
> 4. When the picker closes, the inputDate has been updated with the Date in English.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.