Hi Caius, why don't you try JSF Facelets? I'm using jsf-facelets 1.1.14with Trinidad 1.0.6 and it's working like a charm for composition!
Here is an example of how I use it: LAYOUT ############################### <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <tr:document xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:trh="http://myfaces.apache.org/trinidad/html" title="Base framework"> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Trinidad Test</title> <ui:insert name="beforeLoadScripts" /> </head> <tr:form defaultCommand="#{defaultFormCommand != null ? defaultFormCommand : 'none'}" id="mainForm"> <div id="header"><!-- HEADER MENU --> <ui:insert name="headerMenu"> <ui:include src="headerMenu.xhtml" /> </ui:insert></div> <div id="content"> <div id="menuContent"> <div id="logo"> <h1><a href="#">Your Logo</a></h1> <h2><a href="http://www.redmane.com/">your link</a></h2> </div> <!-- LEFT SIDE MENU --> <ui:insert name="menu"> <ui:include src="menu.xhtml" /> </ui:insert></div> <div id="bodyContent"> <div id="welcome"><!-- PAGE TITLE --> <h2><ui:insert name="title">Default Page title</ui:insert></h2> <!-- ERROR MESSAGES --> <tr:messages /> <!-- PAGE CONTENT --> <ui:insert name="content"> <ui:include src="content.xhtml" /> </ui:insert></div> </div> </div> <div style="height:20px;"/> <!-- FOOTER --> <ui:insert name="footer"> <ui:include src="footer.xhtml" /> </ui:insert> </tr:form> </f:view> <ui:insert name="afterLoadScripts"/> </tr:document> A PAGE ################################# <tr:subform xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:tr="http://myfaces.apache.org/trinidad"> <ui:composition template="/layout/layout.xhtml"> <ui:define name="title">Home Page</ui:define> <ui:define name="content"> Welcome <p> <tr:group rendered="#{securityContext.ifAllGranted['ROLE_TEST']}"> Testing ACEGI JSF </tr:group> </p> </ui:define> </ui:composition> </tr:subform> Hope it helps! Bye Davide On Wed, Mar 12, 2008 at 4:09 AM, Caius Gran <[EMAIL PROTECTED]> wrote: > Hello! > > In short: tr:showDetail's stop working if there's jsp:include used > anywhere, > but they do work that way with trinidad 1.0.0-incubating. > > And in long: > > We have had trinidad 1.0.0-incubating in use for a while now, but I've had > along the way few attempts of upgrading to the latest version, with > problems. > > Now, with 1.0.6 I found the problem to be that PPR completely ceases to > function when I employ <jsp:include page="somepage.jsp" /> anywhere. > > For example, if I have tr:showDetail anywhere the close/disclose > functionality > stops working directly. On the example below, there's a tr:commandButton > which I'd have to press to make the disclosure status to update on the > showDetails. If I press any showDetail twice I get a following kind of > message: > > WARNING: Event > org.apache.myfaces.trinidad.event.DisclosureEvent > [phaseId=INVOKE_APPLICATION(5),component=CoreShowDetail[UIXFacesBeanImpl, > id=_idJsp4],expanded=false] was delivered to a showDetail already in that > disclosure state. > > > So, what do I need to do to get our version upgrade? > Thanks! > > Caius Gran > > > > Here's a code example: > > MAIN PAGE: > ------------------------------------------------- > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <%@ page contentType="text/html;charset=windows-1252"%> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> > <%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%> > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > <%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%> > > <f:view> > <tr:document title="test"> > <tr:form> > <tr:panelGroupLayout layout="vertical"> > <tr:commandButton text="Test"></tr:commandButton> > <tr:showDetail disclosedText="Testdetail"> > <tr:outputText value="text inside"></tr:outputText> > </tr:showDetail> > > <jsp:include page="test_include.jsp"></jsp:include> > </tr:panelGroupLayout> > </tr:form> > </tr:document> > </f:view> > > INCLUDED PAGE: > ------------------------------------------------- > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <%@ page contentType="text/html;charset=windows-1252"%> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> > <%@ taglib uri="http://myfaces.apache.org/trinidad" prefix="tr"%> > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > <%@ taglib uri="http://myfaces.apache.org/trinidad/html" prefix="trh"%> > > <tr:showDetail disclosedText="Testdetail"> > <tr:outputText value="text inside"></tr:outputText> > </tr:showDetail> >

