Ok, I tried it and it works. But it wasn't exact that what I really had in mind.
I try to explain it a little more:
With your example I can only lookup for message keys that has the same name as the value
of the attribute.
If I have languages with the iso codes 'EN', 'DE' or 'FR' the EL
expression will look for messages keys with the names of the codes. So the keys have to be
the value of the attribute:
DE = german
| EN = english
| FR = french
But if I have also countries like 'DE' or 'FR', the message key referres
for this both also to the language name.
So I would put a prefix to the message keys and access them from the UI component. Here an
snip of a resource bundle:
| languagename.DE = german
| languagename.EN = english
| languagename.FR = french
| country.DE = Germany
| country.FR = France
| country.UK = United Kingdom
|
So I would write something like 'languagename.' + language.isocode or
'country.' + country.isocode in a tag.
Is this possible?
Regards
Marco
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002651#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...