File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes dynamic internationalization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "dynamic internationalization" Watch "dynamic internationalization" New topic

dynamic internationalization

hal arres
Ranch Hand

Joined: Jan 10, 2003
Posts: 30
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.

Greg Bishop

Joined: Apr 17, 2006
Posts: 5
You don't need 2 #'s the 1st # tells it it's a JSF variable, just remove the 2nd one.

Greg Bishop, Senior Software Engineer
CESI, 12000 Research Dr. Orlando Florida
I agree. Here's the link:
subject: dynamic internationalization
It's not a secret anymore!