RichFaces calendar i18n - plug other than English locale
We use rich:calendar
component.
It's default locale is English - names of months and other labe开发者_开发技巧ls.
How to plug other than En
locale?
Thank you.
You can set the locale by the locale
attribute which points to java.util.Locale
:
<rich:calendar locale="#{bean.locale}" />
Or when you already have a <f:view locale="#{bean.locale}">
for i18n:
<rich:calendar locale="#{facesContext.viewRoot.locale}" />
See also:
- RichFaces 3.3.x Developer Guide -
<rich:calendar>
精彩评论