I am developing a web application in jboss, seam, richfaces.
I use the template (xhtml) as the main page of everyone else, and there I set two insert tags. <ui:insert name="head"/>
<ui:insert name="body"/>
The problem is that pages that use this main page as a template <ui:define name="head">...</ui:define>must be defined internally <ui:define name="body">...</ui:define>.
How can i do this?
Basically, I want to do the following:
<ui:define name="body">... <ui:define name="head"> <meta name="title" content="#{something.title}" /> </ui:define> ...</ui:define>
the main page should return: <meta name="title" content="#{something.title}" />to<ui:insert name="head"/>
Thanks in advance
source
share