Hi,
I need to access a message bundle property like so:
<t:outputText value="#{msg['linked.' + bean.type]}" />
Although that syntax doesn't quite work. I've tried a few things. The
closest I got was using a t:aliasBean like
<t:aliasBean alias="#{key}" value="linked.#{bean.type}" />
<t:outputText value="#{msg[key]}" />
This actually works, but problems arise when you stick that into a
t:dataList. Inside the datalist the t:aliasBean doesn't get reevaluated
and instead the property resolver will try and resolve
"#{msg[linked.#{bean.type}]} which doesn't work.
I had a temporary fix which changed the value stored in the bean to
include the "linked." part but that causes problems later with the
application logic.
Thanks for any help
Matt