In JSF 2.0, if the message is not found in the message set, then by default the key is surrounded ??? . This is a very useful hint during development. However, in my particular case, I really would like those ??? were not present. I prefer that only the key is displayed.
eg. when i do
and the key "hello" does not exist, the page displays
??? Hello???
but I would like to show the bare key
Hello
The message bundle is uploaded to the JSF page as follows:
<f:loadBundle basename="resources.text" var="msg" />
The <f:loadBundle> does not seem to have an attribute to control the way values ββare received from this package. Should I overwrite a class or how to intercept the way I get messages from a package?
I found a very interesting article on this subject: Context-sensitive resource entries in JavaServer Faces applications - going beyond local languages, regions, and variations . However, in my case, I just want to omit ??? . I think this solution is rather complicated. How can I achieve this?
jsf resourcebundle
rose Jun 23 '11 at 8:23 2011-06-23 08:23
source share