I can't really say.  I've never recommended the use of Tiles with
JSF at all - Trinidad, Tomahawk, A4J, standard spec components,
none of them really work that well with Tiles.

I'd recommend getting jsp:include working first.   *Then* try
mixing in Tiles if you really must.

-- Adam


On 8/28/07, Edward Dowgiallo <[EMAIL PROTECTED]> wrote:
> Thank you Adam.
>
> This now has the Tiles 1.3.5 partially functioning.  layout.jspx is now
> being processed correctly.  The contents of body.jspf, however, appear
> unprocessed at the beginning of the response.  Do I need a servlet or filter
> mapping for *.jspf?
>
> tiles-defs.xml:
>
> <tiles-definitions>
>
>     <definition    name="/test.tiles"    path="/page/layout.jspx">
>         <put    name="body"            value="/tile/body.jspf"/>
>     </definition>
>
> </tiles-definitions>
>
> layout.jspx:
>
> <jsp:root    version="2.0"
>             xmlns:f="http://java.sun.com/jsf/core "
>             xmlns:jsp="http://java.sun.com/JSP/Page";
>
> xmlns:tiles="http://struts.apache.org/tags-tiles "
>             xmlns:tr="http://myfaces.apache.org/trinidad";>
>     <jsp:directive.page
> contentType="text/html;charset=UTF-8" />
>
>     <tiles:importAttribute    scope="request" />
>
>     <f:view>
>         <tr:document title="Library Home Page">
>             <tr:form>
>
>                 <tr:panelPage    id="library-home-page">
>
> <f:verbatim><div>html</div></f:verbatim>
>                     <tr:outputText    value="Before..." />
>                     <tiles:insert    attribute="body"    flush="false"/>
>                     <tr:outputText    value="...After" />
>                 </tr:panelPage>
>
>             </tr:form>
>         </tr:document>
>     </f:view>
>
> </jsp:root>
>
> body.jspf:
>
> <jsp:root    version="2.0"
>             xmlns:f="http://java.sun.com/jsf/core";
>             xmlns:jsp=" http://java.sun.com/JSP/Page";
>
> xmlns:tiles="http://struts.apache.org/tags-tiles";
>             xmlns:tr=" http://myfaces.apache.org/trinidad";>
>
>     <f:verbatim><div>Alpha</div></f:verbatim>
>     <tr:panelBorderLayout>
>         <tr:outputText value="Tiles 101 body content." />
>     </tr:panelBorderLayout>
>
> </jsp:root>
>
> On 8/28/07, Adam Winer <[EMAIL PROTECTED]> wrote:
> > The problem is that the JspTilesViewHandlerImpl is running
> > without the TrinidadViewHandlerImpl ever getting a chance.
> >
> > See
> >
> http://www.nabble.com/-Trinidad--Integration-with-Tiles-t4244805.html
> > where pdt_p answered this question.
> >
> > -- Adam
> >
> >
> > On 8/28/07, Edward Dowgiallo <[EMAIL PROTECTED]> wrote:
> > > I would greatly appreciate any advice on how to correct this or at least
> > > what might be causing it.
> > >
> > > Environment is MyFaces 1.1.5, Trinidad 1.0.2, Tomahawk 1.1.6, Struts
> Tiles
> > > 1.3.5, JDK 1.5.0_11
> > >
> > > Thank you,
> > >  Ed
> > >
> > > Aug 28, 2007 7:04:25 PM
> > >
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> > > createResponseWriter
> > > SEVERE: No RenderingContext has been created.
> > > Aug 28, 2007 7:04:25 PM
> > > org.apache.catalina.core.ApplicationDispatcher invoke
> > > SEVERE: Servlet.service() for servlet jsp threw exception
> > > java.lang.IllegalStateException: No RenderingContext
> > >     at
> > >
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:214)
> > >     at
> > >
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd
> (UIXComponentBase.java:710)
> > >     at
> > >
> javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
> > >     at javax.faces.webapp.UIComponentTag.doEndTag
> > > (UIComponentTag.java:366)
> > >     at
> > >
> org.apache.myfaces.trinidad.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:118)
> > >     at
> > >
> org.apache.jsp.page.layout_jspx._jspx_meth_tr_005fdocument_005f0(layout_jspx.java:159)
> > >      at
> > >
> org.apache.jsp.page.layout_jspx._jspx_meth_f_005fview_005f0(layout_jspx.java:126)
> > >     at
> > >
> org.apache.jsp.page.layout_jspx._jspService(layout_jspx.java:77)
> > >     at
> > > org.apache.jasper.runtime.HttpJspBase.service
> (HttpJspBase.java
> > > :70)
> > >     at
> > >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > >     at
> > >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> > >     at
> org.apache.jasper.servlet.JspServlet.serviceJspFile
> > > (JspServlet.java:320)
> > >     at
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> > >     at
> > > javax.servlet.http.HttpServlet.service
> (HttpServlet.java:803)
> > >     at
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > > (ApplicationFilterChain.java:290)
> > >     at
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
> > >     at
> > >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java
> > > :654)
> > >     at
> > >
> org.apache.catalina.core.ApplicationDispatcher.processRequest
> (ApplicationDispatcher.java:445)
> > >     at
> > >
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
> > >     at
> > > org.apache.catalina.core.ApplicationDispatcher.forward
> > > (ApplicationDispatcher.java:292)
> > >     at
> > >
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
> > >     at
> > >
> org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch
> > > (ExternalContextDecorator.java:43)
> > >     at
> > >
> org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:43)
> > >     at
> > >
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch
> > > (FacesContextFactoryImpl.java:260)
> > >     at
> > >
> org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:43)
> > >     at
> > >
> org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch
> > > (FacesContextFactoryImpl.java:260)
> > >     at
> > >
> org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:236)
> > >     at
> > >
> org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView
> > > (JspTilesViewHandlerImpl.java:222)
> > >     at
> > >
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> > >     at
> > > org.apache.myfaces.lifecycle.LifecycleImpl.render
> (LifecycleImpl.java:132)
> > >      at
> > >
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
> > >     at
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
> :290)
> > >     at
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter
> > > (ApplicationFilterChain.java:206)
> > >     at
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
> :230)
> > >     at
> > >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> > >     at
> > >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> > >     at
> > >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
> > >     at
> org.apache.catalina.core.StandardEngineValve.invoke
> > > (StandardEngineValve.java:109)
> > >     at
> > > org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:261)
> > >     at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> > >     at
> > >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
> > > (Http11Protocol.java:581)
> > >     at
> > >
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> > >     at java.lang.Thread.run(Thread.java:595)
> > >
> > >
> > >
> >
>
>

Reply via email to