Skip to content

Mis en ligne par admin - 12 mars 2014 - Web Applications

I18N: internationalization in JSF

To internationalize your JSF (portlet or application), you need:

1. Your message.properties (and messages_en_US.properties, message_fr.properties, etc.) in one of your src package.
Note that it is a list of lines with label=Value

2. In each of your JSF facelet, you need to load the bundle et associate it with a variable (msg)

3. In your JSF, use the following EL tag, with the message.properties label
#{msg['label']

Articles similaires

Les articles suivants abordent des thèmes communs.

Il n'y aucun article en relation avec ce sujet.

Commentaires

Partagez vos remarques.

Il n'y a pas de commentaires pour cet article.

Add a Comment

Fill in the form and submit.