开发者

JSF: Resource bundle key (name) as EL expression?

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]}" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜