| Author |
How to pass dynamic value to resource bundle param like {0}
|
Ajay Kamble
Ranch Hand
Joined: Jan 23, 2009
Posts: 51
|
|
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
Joined: Nov 27, 2008
Posts: 101
|
|
Jsf page
<h utputFormat value="#{bundle.someText}">
<f:param value="#{backingBean.startTime}"/>
<f:param value="#{backingBean.endTime}"/>
</h utputFormat>
Properties File
someText=You can call me on business days between the hours of {0} and {1} Eastern Time.
|
 |
 |
|
|
subject: How to pass dynamic value to resource bundle param like {0}
|
|
|