aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

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

Basit Mahmood
Greenhorn

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>

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use <f:loadBundle> tag inside <ui:composition> tag
 
Similar Threads
JSF 2.0 Login
javax.el.PropertyNotFoundException: Objetivo inalcanzable - JSF - Facelet - method-signature
Problem trying to send file to browser in JSF
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering
Updating a form in primefaces when a selection is made in the datatable