Hi there,
I'm working on a JSF project (Glassfish 3.0.1). I have a page
something like this:
<ui:debug/>
<f:loadBundle var="_m" basename="sample.Messages"/>
<f:metadata>
<f:viewParam name="id" required="true"
requiredMessage="#{_m['error']}"/>
</f:metadata>
<h:body>
<h:messages/>
</h:body>
If I put error message directly into the requiredMessage attribute, it
works.
If I specify a value expression which is the message from a resource
bundle,
<h:messages/> tag still works, but it outputs just blank.
With the help of <ui:debug/>, I inspected the component tree. The
viewParam
component has correct requiredMessage from the bundle. What's wrong
with
this page?
Thanks for any idea
Roger Suen (SUNRUJUN)