开发者

RichFaces calendar i18n - plug other than English locale

开发者 https://www.devze.com 2023-03-07 21:28 出处:网络
We use rich:calendar component. It\'s default locale is English - names of months and other labe开发者_开发技巧ls.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消