This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!