Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass dynamic value to resource bundle param like {0}

 
Ajay Kamble
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have below message in my resource bundle,



I have kept href as param {0}, because I do not want to hard code it. I want to make the dynamic URL using context path etc.,

I tried below and it failed because of this error: JSPG0124E: Custom tag attribute value cannot be runtime expression



How do I code this now? Is there any trick to get this done in JSF?

-Regards
Ajay
 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jsf page

<hutputFormat value="#{bundle.someText}">
<f:param value="#{backingBean.startTime}"/>
<f:param value="#{backingBean.endTime}"/>
</hutputFormat>

Properties File

someText=You can call me on business days between the hours of {0} and {1} Eastern Time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic