1 Reply Latest reply on May 17, 2007 2:46 PM by fernando_jmt

    Seam EL: How to get msg from resource file?

      Hello,

      I am building a h:selectOneMenu and I had a need to localize the text in the select menu. My problem is I don't know how to get the text from a resource file using EL?

      For example, say 'res' is my resource-bundle mapped in faces-config.xml, I know we can do this:

      facesMessages.add("#{res['enum.typeA.label']}");


      but I can't do this:

      String label = "#{res['enum.typeA.label']}";


      How do I extract a text out of a resource bundle and have it mapped to a variable?

      Thanks