You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bjørn Stenfeldt (JIRA)" <de...@myfaces.apache.org> on 2006/12/20 12:05:21 UTC
[jira] Created: (TOMAHAWK-825) Locale support for inputDate months
Locale support for inputDate months
-----------------------------------
Key: TOMAHAWK-825
URL: http://issues.apache.org/jira/browse/TOMAHAWK-825
Project: MyFaces Tomahawk
Issue Type: Improvement
Affects Versions: 1.1.5-SNAPSHOT
Environment: Java EE 1.4, JSF 1.2, Sun Application Server PE9, Tomahawk 1.1.5 SNAPSHOT nightly build from november 16th
Reporter: Bjørn Stenfeldt
Priority: Minor
Fix For: 1.1.3
I am pretty sure this worked in Tomahawk 1.1.3, but I could be wrong...
The drop down with months always display the month names in English. Would be great if the names were in their locale names instead. Here is a piece of code that display English month names, where I actually wanted Danish names instead.
<tomahawk:inputDate id="myId"
value="#{MyBean.deadline}"
timeZone="Europe/Copenhagen"
required="true"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (TOMAHAWK-825) Locale support for inputDate months
Posted by "Bjørn Stenfeldt (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bjørn Stenfeldt resolved TOMAHAWK-825.
--------------------------------------
Resolution: Invalid
Fix Version/s: (was: 1.1.3)
1.1.5-SNAPSHOT
My mistake. Turns out I has missed the locale attribute on the core:view tag. After adding that, months have been rendering in their correct language.
So the solution is something like this:
<core:view locale="#{MyBean.locale}">
<tomahawk:inputDate id="myId"
value="#{MyBean.date}"
timeZone="#{MyBean.timeZone}"
required="true"/>
</core:view>
> Locale support for inputDate months
> -----------------------------------
>
> Key: TOMAHAWK-825
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-825
> Project: MyFaces Tomahawk
> Issue Type: Improvement
> Affects Versions: 1.1.5-SNAPSHOT
> Environment: Java EE 1.4, JSF 1.2, Sun Application Server PE9, Tomahawk 1.1.5 SNAPSHOT nightly build from november 16th
> Reporter: Bjørn Stenfeldt
> Priority: Minor
> Fix For: 1.1.5-SNAPSHOT
>
>
> I am pretty sure this worked in Tomahawk 1.1.3, but I could be wrong...
> The drop down with months always display the month names in English. Would be great if the names were in their locale names instead. Here is a piece of code that display English month names, where I actually wanted Danish names instead.
> <tomahawk:inputDate id="myId"
> value="#{MyBean.deadline}"
> timeZone="Europe/Copenhagen"
> required="true"/>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.