Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Questions about dynamic text output with message bundle

543746Aug 21 2007 — edited Sep 7 2007
hi, 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2007
Added on Aug 21 2007
8 comments
572 views