1 Reply Latest reply on Nov 27, 2007 9:21 AM by damianharvey

    messages in a java class

      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!