Hi,
I am newbie to facelet. I'd to construct my pages by using the ui:define directive
I define the main body in the page home.xhtml :
<ui:composition template="template.xhtml">
<ui:define name="body"> bla bla </ui:define>
</ui:composition>
The template.xhtml collects the standard defines and the template for the layout :
<ui:composition template="template_layout.xhml" >
<ui:include src="header.xhtml" />
</ui:composition>
The header.xhtml defines the header
<ui:define name="header"> my header </ui:define>
Then the template_layout.xhtml refers to the header and body defines to construct the file
<html>
<head />
<body>
<div class="header">
<ui:insert name="header">
</div>
<div class="main">
<ui:insert name="body>
</div>
The problems is that the ui:include does not import properly the ui:define wrotten in the header.xhtml file. If I copy paste the content in the template.xhmlt, I see the header.
What did I not understand ?
Thankss