Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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
 
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!