Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic internationalization

 
hal arres
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to build a jsf page where the i18n string comes from the database and the translation should be read in the jsf page.
I want to do it this way because I stored different attributes in the database and they should be translated in the jsf page to the according language.

But I am trying and trying without any success. Maybe someone of you can help me?

I configured the message ressource in the faces-config.xml:


And want to access it in the jsf page in a way like this:


The object category contains the part of message key which is in the message ressource file.

It would be very nice if someone of you could help me.

Greetings,
arres
 
Greg Bishop
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need 2 #'s the 1st # tells it it's a JSF variable, just remove the 2nd one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic