File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Basit Mahmood
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic