开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜