| 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
|
 |
 |
|
|
subject: Do we need to put a <f:loadbundle> tag on every JSF/JSP view page?
|
|
|