Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ignacio de Cordoba
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic