aspose file tools*
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
Author

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

Ignacio de Cordoba
Greenhorn

Joined: Jan 04, 2010
Posts: 13
Hello,
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?

thanks,
Ignacio
 
 
subject: Include ${} variable in <f:loadBundle/> basename field