Forums Register Login

Do we need to put a <f:loadbundle> tag on every JSF/JSP view page?

+Pie Number of slices to send: Send
I was doing some internationalization, and all of my resources talk about adding an f:loadbundle tag to every JSP. That seems rather cumbersome. Isn’t there some way to point to the appropriate resource bundle once in the faces-config.xml file or web.xml file, and then not have to re-reference that message bundle or resource bundle on every single JSF view page? I’m positive that I saw that somewhere!

-Cameron McKenzie
+Pie Number of slices to send: Send
And of course, after plenty of time searching, I managed to find the answer as soon as I asked the question.

Apparently, in JSF 1.1 and earlier you do. In JSF 1.2 and on, you can use this little element in your faces-config.xml file.



Please excuse me as I converse with myself in these JavaRanch forums. Hopefully this helps someone else.

-Cameron McKenzie

No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2063 times.
Similar Threads
JSF message in faces-config.xml itself
how to access resource bundle in included JS file
Resourcebundle can not be found!
reg resource bundle
Property strings in Icefaces
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:26:32.