How to use <f:loadBundle> tag inside <ui:composition> tag
posted 5 years ago
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>