"petemuir" wrote : You are probably after the Messages component (which you 
access in JSF as #{messages[key]}).
  | 
  | You could do Messages.instance().get(key) or @In(#{messages[key]} String 
value or @In Map<String, Object> messages;

For the front end, I specify the view-id in pages.xml such as
<page view-id="/scheduler/editFlightInfo.xhtml" 
bundle="scheduler/editFlightInfo"/>
Then I have a editFlightInfo_en.properties under WEB-INF/classes/scheduler

then on editFlightInfo.xhtml, I can do things like "#{messages.keyname}" where 
the keyName is in editFlightInfo_en.properties.

However, how Seam know which view-id I am referring to (or which resource 
bundle file) from the java side?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031234#4031234

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031234
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to