This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Include ${} variable in <f:loadBundle/> basename field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Include ${} variable in <f:loadBundle/> basename field" Watch "Include ${} variable in <f:loadBundle/> basename field" New topic

Include ${} variable in <f:loadBundle/> basename field

Ignacio de Cordoba

Joined: Jan 04, 2010
Posts: 13
in a JSF2 xhtml file I need to do this type of loadBundle:

<f:loadBundle basename="${service}" var="serviceMsgs"/>

${service} is the name of the service and comes from a ui:repeat.

The problem is that ${service} evaluates to an empty String inside that basname f:loadBundle field. It seems I can only use a constant there. I've checked with ${service} and #{service} outside the f:loadBundle tag and they evaluate OK in the iteration
Anybody has an idea for a workarround?

I agree. Here's the link:
subject: Include ${} variable in <f:loadBundle/> basename field
Similar Threads
How to declare multiple message bundles in Faces-config.xml
how to access values in session from javascript
loadbundle question
Message Bundles file location