Two Laptop Bag
The moose likes JSF and the fly likes How to use <f:loadBundle> tag inside <ui:composition> tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "How to use <f:loadBundle> tag inside <ui:composition> tag" Watch "How to use <f:loadBundle> tag inside <ui:composition> tag" New topic

How to use <f:loadBundle> tag inside <ui:composition> tag

Basit Mahmood

Joined: Oct 10, 2011
Posts: 2
Hi to all,
Hope you all will be fine. Actually i want to use <f:loadBundle> tag in my JSF page. I know that i can declare it inside faces.config.xml but for a reason i want to use it in my JSF page. I am using the tag in this manner but it is not working. Also i am using it inside <ui:composition> tag.

What i am doing wrong? Also i read that

To make use of a template, you use a 'ui:composition' tag with a 'template' attribute.
Facelets removes all tags outside the <ui:composition> tag - that is, the doctype declaration, html, head, title and body tags. This is necessary because the <ui:composition> is replaced with the template that contains its own set of html, head, title, and body tags.

If i want to use my properties file in the head section then how can i use it? Because Head section is outside the <ui:composition tag>. I mean to say if i want to do this

then how can i use my properties file putside <ui:composition>

I agree. Here's the link:
subject: How to use <f:loadBundle> tag inside <ui:composition> tag
jQuery in Action, 3rd edition