Hi Use ui:decorate instead ui:include in the parts you need an ui:define to be taken into account when the templates are resolved. regards, Leonardo Uribe 2014-07-01 9:29 GMT-05:00 Paul Spencer : > Using MyFaces 2.2.3 > > The intent is for the contents of the variable page_title to appear both in the browser title bar and in the page’s content header area while using a common template across many pages. The content header area is displayed in the of the page and is there to give each page a consistent look. > > In the example below, “My Page1 Title” appears as the title of the page1.jsp, but not in the header content of the page. > > Why does the variable page_title evaluate to blank/null in includes pages? > > Is there a better way to accomplish the intended behavior? > > > *** > * Page1.xhtml > *** > > > xmlns:f="http://java.sun.com/jsf/core" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:ui="http://java.sun.com/jsf/facelets"> > > > My Page1 Title > > >

Page 1

>
>
> >
>
> > > > > *** > * commonLayout.xhtml > *** > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:h="http://java.sun.com/jsf/html" > xmlns:ui="http://java.sun.com/jsf/facelets"> > > > > > > <ui:insert name="page_title" /> > > > > >
>
> > > >
>
>
> > > >
> >
> > > >
> >
>
> > > >
> >
>
> > > *** > * commonHeader.xhtml > *** > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > xmlns:ui="http://java.sun.com/jsf/facelets"> > > >

> >

>
> > > > > Paul Spencer >