How to set a define inside other define

Posted by João Madureira Pires on Stack Overflow See other posts from Stack Overflow or by João Madureira Pires
Published on 2010-01-15T13:27:43Z Indexed on 2010/04/12 13:03 UTC
Read the original article Hit count: 420

Filed under:
|
|
|

Hi all!

I'm developing a web application in jboss, seam, richfaces.

I'm using a template(xhtml) as master page of all others and there i set two insert tags. <ui:insert name="head"/> <ui:insert name="body"/>

The problem is that in pages that use this master page as template, the <ui:define name="head">...</ui:define> must be defined inside the <ui:define name="body">...</ui:define>.

How can i do this?

Basically, what i want is to do the following:

<ui:define name="body">... <ui:define name="head"> <meta name="title" content="#{something.title}" /> </ui:define> ...</ui:define>

the master page must return : <meta name="title" content="#{something.title}" /> on the <ui:insert name="head"/>

Thanks in advance

© Stack Overflow or respective owner

Related posts about seam

Related posts about richfaces