This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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?

Have you checked out Aspose?
subject: Include ${} variable in <f:loadBundle/> basename field
jQuery in Action, 3rd edition