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

    messages in a java class

    Jaime Martin Apprentice

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


      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,

       FacesMessages facesMessages;

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

      thank you!