开发者

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

开发者 https://www.devze.com 2023-01-16 03:24 出处:网络
How to make work something like that: <c:forEach items=\"#{bean.data}\" var=\"key\" > <h:outputText value=\"#{m[#{key}]}\" />开发者_开发问答

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

精彩评论

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