hi,
in a xhtml, accessing to a messages_en.properties is easy, just by using 
messages component. for instance:

  | #{messages['org.jboss.seam.ProcessNotFound']}
  | 

Now, I want to acces to that from a java class. For instance:


  | String message1 = "org.jboss.seam.ProcessNotFound";
  | //look for proper message1 value in messages_en.properties
  | System.out.println(  ...message retrieved...   );
  | 

How may I access to messages from a java class? 
For FacesMessages  for instance, I use this,
 

  |     @In
  |     FacesMessages facesMessages;
  | 

The problem I have is that I do not know what is the type of {#messages..

thank you!




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

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

Reply via email to