Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!