You need to use the same technique as you would for the FaceletViewHandler - (the alternative view handler defined in web.xml instead of faces-config.xml) for the tiles ViewHandler. -- Adam Winer On 8/17/06, Matthias Wessendorf wrote: > I am not sure, > where (here? or MyFaces) I read that sb. was able to get Tiles working > with Trinidad. > Can you try the jars (trinidad)? > > Long long time ago, that I used Tiles... > Currently I use Facelets for stuff like that. > > -Matthias > > On 8/16/06, Samba wrote: > > Hello Mr. Matthias, > > > > Thankyou verymuch for your quick reply, > > > > My faces-config looks like this.: > > > > > > oracle.adf.core > > > > > > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl > > > > > > > > > > I need to mention that when I remove the viewhandler from faces config, I'm > > getting a single line error showing, Assertion failed at > > "SiteLayout.jspx"(which > > is my layout page). > > So, I think viewhandler must be mentioned in faces-config.xml. > > > > > > And I'm getting the Illegal Stateexceptiion : No ADFRenderingContext error, > > even when I remove or keep viewhandler in web.xml. > > > > > > > > Where Might have I been wrong, can you help me, > > Thanking you , > > Samb. > > > > On 8/16/06, Matthias Wessendorf wrote: > > > > > > what's in you faces-config? > > > renderkit for adf? > > > viewhandler ? > > > > > > > > > On 8/16/06, Samba wrote: > > > > Hello Every body, > > > > > > > > Can any one help me integrating ADF faces and Tiles? > > > > > > > > I'm using Tomahawk JspTilesViewHandler for the viewhandler. > > > > > > > > The following is the code: > > > > > > > > > > > > > > > xmlns:h="http://java.sun.com/jsf/html" > > > > xmlns:f="http://java.sun.com/jsf/core" > > > > > > > > xmlns:af="http://xmlns.oracle.com/adf/faces" > > > > xmlns:afh="http://xmlns.oracle.com/adf/faces/html" > > > > > > > > xmlns:c="http://java.sun.com/jstl/core" > > > > > > > > xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles"> > > > > > > > doctype-system="http://www.w3.org/TR/html4/loose.dtd" > > > > doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > SiteLayout > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My SiteLayout.jspx defines the layout of the pages on my Web > > > application. > > > > > > > > My Home page is this: > > > > > > > > > > > > > > > xmlns:h="http://java.sun.com/jsf/html" > > > > xmlns:f="http://java.sun.com/jsf/core" > > > > xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache" > > > > xmlns:af="http://xmlns.oracle.com/adf/faces" > > > > xmlns:afh="http://xmlns.oracle.com/adf/faces/html" > > > > xmlns:afi="http://xmlns.oracle.com/adf/industrial/faces" > > > > xmlns:graph="/webapp/graph.tld" > > > > xmlns:c="http://java.sun.com/jstl/core" > > > > xmlns:tiles="http://jakarta.apache.org/struts/tags-tiles"> > > > > > > > doctype-system="http://www.w3.org/TR/html4/loose.dtd" > > > > doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Home > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My page is this: > > > > > > > > > > > > > > Tiles > > > > Configuration 1.1//EN" " > > > > http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My Web.xml is this: > > > > > > > > > > > > > > > > > > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns=" > > > > http://java.sun.com/xml/ns/j2ee"> > > > > Empty web.xml file for Web Application > > > > > > > > > > > > > > > > javax.faces.STATE_SAVING_METHOD > > > > server > > > > > > > > > > > > > > > > > > > > Tiles configuration > > > > definition files and a listener need to be defined. > > > > the listener will initialize JspTilesViewHandlerImpl with tiles > > > definitions. > > > > > > > > > > > > > > > > tiles-definitions > > > > /WEB-INF/tiles-defs.xml > > > > > > > > > > > > > > > > > > > > > > > > javax.faces.CONFIG_FILES > > > > /WEB-INF/faces-config.xml, /WEB-INF/tiles-defs.xml > > > > > > > > > > > > > > > > > > > > javax.faces.DEFAULT_SUFFIX > > > > .jspx > > > > > > > > > > > > > > > > > > > > oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER > > > > > > > > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl > > > > > > > > > > > > > > > > > > > > > > > > adfFaces > > > > oracle.adf.view.faces.webapp.AdfFacesFilter > > > > > > > > > > > > adfFaces > > > > Faces Servlet > > > > > > > > > > > > > > > > Faces Servlet > > > > javax.faces.webapp.FacesServlet > > > > 1 > > > > > > > > > > > > > > > > resources > > > > oracle.adf.view.faces.webapp.ResourceServlet > > > > > > > > > > > > > > > > > > > Faces Servlet > > > > /faces/* > > > > > > > > > > > > > > > > resources > > > > /adf/* > > > > > > > > > > > > > > > > 35 > > > > > > > > > > > > > > > > Tiles Servlet > > > > > > > > org.apache.struts.tiles.TilesServlet > > > > > > > > > > > > > > > > > > > > definitions-config > > > > /WEB-INF/tiles-defs.xml > > > > > > > > 2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > html > > > > text/html > > > > > > > > > > > > txt > > > > text/plain > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The Error I'm getting is : > > > > > > > > java.lang.IllegalStateException: No AdfRenderingContext > > > > at > > > oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd( > > > CoreRenderer.java:154) > > > > at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd( > > > UIXComponentBase.java:624) > > > > at javax.faces.webapp.UIComponentTag.encodeEnd( > > > UIComponentTag.java:623) > > > > at javax.faces.webapp.UIComponentTag.doEndTag( > > > UIComponentTag.java:546) > > > > at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag( > > > UIXComponentTag.java:100) > > > > at _Home_jspx._jspService(_Home_jspx.java:106) > > > > [/Home.jspx] > > > > at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) > > > > at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java > > > :416) > > > > at oracle.jsp.runtimev2.JspServlet.internalService( > > > JspServlet.java:478) > > > > at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) > > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.invoke( > > > ServletRequestDispatcher.java:719) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.forwardInternal( > > > ServletRequestDispatcher.java:376) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.unprivileged_forward( > > > ServletRequestDispatcher.java:298) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.access$100( > > > ServletRequestDispatcher.java:42) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher$2.oc4jRun( > > > ServletRequestDispatcher.java:204) > > > > at oracle.oc4j.security.OC4JSecurity.doPrivileged( > > > OC4JSecurity.java:283) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.forward( > > > ServletRequestDispatcher.java:209) > > > > at com.sun.faces.context.ExternalContextImpl.dispatch( > > > ExternalContextImpl.java:322) > > > > at > > > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.dispatch > > > (JspTilesViewHandlerImpl.java:233) > > > > at > > > org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView > > > (JspTilesViewHandlerImpl.java:219) > > > > at com.sun.faces.lifecycle.RenderResponsePhase.execute( > > > RenderResponsePhase.java:87) > > > > at com.sun.faces.lifecycle.LifecycleImpl.phase( > > > LifecycleImpl.java:200) > > > > at com.sun.faces.lifecycle.LifecycleImpl.render( > > > LifecycleImpl.java:117) > > > > at javax.faces.webapp.FacesServlet.service(FacesServlet.java > > > :198) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) > > > > at > > > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter( > > > AdfFacesFilterImpl.java:367) > > > > at > > > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl( > > > AdfFacesFilterImpl.java:336) > > > > at > > > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter( > > > AdfFacesFilterImpl.java:196) > > > > at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter( > > > AdfFacesFilter.java:87) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.invoke( > > > ServletRequestDispatcher.java:629) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.ServletRequestDispatcher.forwardInternal( > > > ServletRequestDispatcher.java:376) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.HttpRequestHandler.doProcessRequest( > > > HttpRequestHandler.java:870) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java > > > :451) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java > > > :218) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) > > > > at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run( > > > ServerSocketReadHandler.java:260) > > > > at > > > oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket( > > > ServerSocketAcceptHandler.java:230) > > > > at oracle.oc4j.network.ServerSocketAcceptHandler.access$800( > > > ServerSocketAcceptHandler.java:33) > > > > at > > > oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run( > > > ServerSocketAcceptHandler.java:831) > > > > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) > > > > ].util.ReleasableResourcePooledExecutor$MyWorker.run( > > > ReleasableResourcePooledExecutor.java:298) > > > > at java.lang.Thread.run(Thread.java:595) > > > > > > > > > > > > > > > > > > > > > > > > What happened? > > > > Where did I go wrong? > > > > > > > > could you please help me? > > > > Thanking you in advance, > > > > Waiting for your response, > > > > Samba. > > > > > > > > -- > > > > Regards, > > > > Samba. > > > > > > > > > > > > > > > > > -- > > > Matthias Wessendorf > > > > > > further stuff: > > > blog: http://jroller.com/page/mwessendorf > > > mail: mwessendorf-at-gmail-dot-com > > > > > > > > > > > -- > > Vuntaanu... > > Samba. > > > > > > > -- > Matthias Wessendorf > > further stuff: > blog: http://jroller.com/page/mwessendorf > mail: mwessendorf-at-gmail-dot-com >