[jboss-user] [JBoss Seam] - messages in a java class

jamesjmp do-not-reply at jboss.com
Tue Nov 27 07:59:22 EST 2007


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



More information about the jboss-user mailing list