aspose file tools
The moose likes JSF and the fly likes Do we need to put a <f:loadbundle> tag on every JSF/JSP view page? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Do we need to put a <f:loadbundle> tag on every JSF/JSP view page?" Watch "Do we need to put a <f:loadbundle> tag on every JSF/JSP view page?" New topic
Author

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

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

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


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

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

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Do we need to put a <f:loadbundle> tag on every JSF/JSP view page?
 
Similar Threads
how to access resource bundle in included JS file
reg resource bundle
Resourcebundle can not be found!
JSF message in faces-config.xml itself
Property strings in Icefaces