If for example kratica resolves to KR in my resource bundle I have key KR_kratica.
<ui:param name="kratica_3" value="#{aktivnostBean.vrsteAktivnosti.get(3).kratica}_kratica" />
<p:column headerText="#{msg[kratica_3]}">
...
Some expression language basics:
- msg.someKey will look at message bundle for someKey
- msg['someKey'] will look at message bundle for someKey
- msg[someKey] will look at params to resolve property someKey
- msg[aktivnostBean.vrsteAktivnosti.get(3).kratica] will look at objects property kratica and then look at msg bundle
- msg[aktivnostBean.vrsteAktivnosti.get(3).kratica_kratica] will look at objects property kratica_kratica which does not exist, so use ui:param
No comments:
Post a Comment