sergionni
sergionni

Reputation: 13510

RichFaces calendar i18n - plug other than English locale

We use rich:calendar component.

It's default locale is English - names of months and other labels.

How to plug other than En locale?

Thank you.

Upvotes: 2

Views: 1501

Answers (1)

BalusC
BalusC

Reputation: 1108742

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:

Upvotes: 2

Related Questions