0 Replies Latest reply on Oct 6, 2008 11:14 AM by nimo stephan

    Seam @In for messages.properties

    nimo stephan Master

      Hello,


      I have injected a String from a ResourceBundle:


      @In("#{messages['m1']}")
      private String myString;



      The String in my messages.properties looks like:


      m1= hello #0



      Now, I want to use it as a normal String.


      How can I inject the variable {0} ?


      I know, with Seams facesMessages, I can do it like:


      facesMessages.addFromResourceBundle("m1", getValue());



      But is there a possibility to do something like:



      String a = (String) facesMessages.addFromResourceBundle("m1", getValue());