1 Reply Latest reply on Jul 16, 2010 11:11 PM by Raphael Rodrigues

    i18n in facelets tag function

    Raphael Rodrigues Newbie

      Hi all,


      I'm trying to get i18n messages inside my taglib function.


      I've create my method and register in my taglib.xml, like this:


      public static String getDiasByLista(){
      
      ValueExpression<?> ve = Expressions.instance().createValueExpression(#{messages['teste.here']});
              return (ve != null && ve.getValue() != null)?ve.getValue():"";
      }
      



      The Result from value is null. I also have tried Components.getInstance(messages) and return null. Is there another option?


      Regards,