How to make work something like that:
<c:forEach items="#{bean.data}" var="key" >
<h:outputText value="#{m[#{key}]}" />
</c:forEach>
I need to get value from messages.properties, but dynamically using #{} expression.
Does this work?
<h:outputText value="#{m[key]}" />
来源:https://stackoverflow.com/questions/3683545/jsf-resource-bundle-key-name-as-el-expression