Questions about dynamic text output with message bundle
543746Aug 21 2007 — edited Sep 7 2007hi, all,
I have a problem on the usage of the message bundle in the JSF. In my application, I have a af:outputtext with the value reference to #{backbean.variable}. However, the variable stores the key of the message from a message bundle.
I tried to a code as following and expecting to return the corresponding message of current locale selected, but fail. Does anyone have any ideas on this?
My code is as following:
<f:loadBundle basename="somewhere.UIResources"
var="res"/>
<af:outputText value="#{res['#{ApplicationSuccess.test}']}"
binding="#{ApplicationSuccess.outputText1}"
id="outputText1">
Thanks
Message was edited by:
user540743