Re, I have only one form tag in mei xhtml file. I put the trinidad stuff in another much more smaller xhtml file, to be sure having only this one form tag. But same error.
You can view the xhtml here: http://nopaste.info/48d9a6aca3.html >Is it possible, >that you have a <form> inside a <form> ? >-Matthias >On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Re Matthias, > > > > I went several times through the Facelets_with_Trinidad tutorial, but I got > > always the rendererKit Error. > > I checked all config files again but I guess they should be ok. > > I put the ViewHandler out of the faces-config and now I got another > > error: > > ---------------------------- > > 28.09.2007 16:50:17 com.sun.facelets.FaceletViewHandler handleRenderException > > SCHWERWIEGEND: Error Rendering View[/homePage.xhtml] > > java.lang.NullPointerException > > at > > org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormRenderer.encodeEnd(FormRenderer.java:206) > > at > > org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224) > > at > > org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeEnd(HtmlFormRenderer.java:63) > > at > > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539) > > ---------------------------------- > > > > my Faces-Config: > > ============= > > <application> > > <!-- Use the Trinidad RenderKit --> > > <default-render-kit-id> > > org.apache.myfaces.trinidad.core > > </default-render-kit-id> > > </application> > > > > > > my Web.xml > > ============ > > <!-- TRINIDAD CONTEXT PARAM --> > > <context-param> > > > > <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name> > > <param-value>com.sun.facelets.FaceletViewHandler</param-value> > > </context-param> > > > > <context-param> > > > > <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name> > > <param-value>false</param-value> > > </context-param> > > > > <context-param> > > > > <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name> > > <param-value>true</param-value> > > </context-param> > > > > <context-param> > > > > <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name> > > <param-value>session</param-value> > > </context-param> > > <!-- TRINIDAD END --> > > > > > > <!-- TRINIDAD FILTERS --> > > <filter> > > <filter-name>trinidad</filter-name> > > > > <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class> > > </filter> > > > > <filter-mapping> > > <filter-name>trinidad</filter-name> > > <servlet-name>faces</servlet-name> > > </filter-mapping> > > <!-- TRINIDAD FILTERS END --> > > > > > > <!-- TRINIDAD resource loader servlet --> > > <servlet> > > <servlet-name>resources</servlet-name> > > > > <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class> > > </servlet> > > <!-- TRINIDAD END --> > > > > > > my Pom.xml > > ============ > > <!-- TRINIDAD DEPENDECIES --> > > <dependency> > > <groupId>org.apache.myfaces.trinidad</groupId> > > <artifactId>trinidad-api</artifactId> > > <version>1.0.2</version> > > <scope>compile</scope> > > </dependency> > > > > <dependency> > > <groupId>org.apache.myfaces.trinidad</groupId> > > <artifactId>trinidad-impl</artifactId> > > <version>1.0.2</version> > > <scope>compile</scope> > > </dependency> > > <!-- END TRINIDAD DEPENDENCIES --> > > >> > > Hi Wolfgang, >> > > >> > > don't specify the ViewHandler inside the faces-config.xml >> > > Do it inside the web.xml: >> > > >> > > <context-param> >> > > >> > > <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name> >> > > <param-value>com.sun.facelets.FaceletViewHandler</param-value> >> > > </context-param> >> > > >> > > >> > > for more see here: >> > > http://wiki.apache.org/myfaces/Facelets_with_Trinidad >> > > >> > > -Matthias >> > > >> > > On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> > >> Hi, >>> > >> >>> > >> if I put the default rendererKit into my faces-config.xml then >>> > >> I got the following error: >>> > >> >>> > >> ----------------------------------------------------------------------- >>> > >> 28.09.2007 16:13:43 >>> > >> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit >>> > >> createResponseWriter >>> > >> SCHWERWIEGEND: No RenderingContext has been created. >>> > >> 28.09.2007 16:13:43 com.sun.facelets.FaceletViewHandler > > handleRenderException >>> > >> SCHWERWIEGEND: Error Rendering View[/homePage.xhtml] >>> > >> java.lang.IllegalStateException: No RenderingContext >>> > >> at >>> > >> org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:193) >>> > >> at >>> > >> org.apache.myfaces.trinidadinternal.renderkit.htmlBasic.HtmlFormRenderer.encodeBegin(HtmlFormRenderer.java:56) >>> > >> at >>> > >> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:515) >>> > >> -------------------------------------------------------------- >>> > >> >>> > >> >>> > >> But if I remove the default rendererKit, Trinidad throws >>> > >> of course the following error: >>> > >> >>> > >> ------------------------------------------------------------------- >>> > >> 28.09.2007 16:19:41 org.apache.myfaces.trinidad.component.UIXComponentBase >>> > >> _getRendererImpl >>> > >> WARNUNG: Could not find renderer for CoreForm[UIXFacesBeanImpl, id=_id97] >>> > >> rendererType = org.apache.myfaces.trinidad.Form >>> > >> 28.09.2007 16:19:41 org.apache.myfaces.trinidad.component.UIXComponentBase >>> > >> _getRendererImpl >>> > >> WARNUNG: Could not find renderer for >>> > >> CoreInputText[UIXEditableFacesBeanImpl, id=input1] rendererType = >>> > >> org.apache.myfaces.trinidad.Text >>> > >> 28.09.2007 16:19:41 org.apache.myfaces.trinidad.component.UIXComponentBase >>> > >> _getRendererImpl >>> > >> WARNUNG: Could not find renderer for CoreCommandButton[UIXFacesBeanImpl, >>> > >> id=button1] rendererType = org.apache.myfaces.trinidad.Button >>> > >> --------------------------------------------------------------- >>> > >> >>> > >> >>> > >> my faces-config.xml looks, how you can imagine, like this: >>> > >> ------------------------------ >>> > >> <application> >>> > >> >>> > >> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> >>> > >> </application> >>> > >> >>> > >> <application> >>> > >> <!-- Use the Trinidad RenderKit --> >>> > >> <default-render-kit-id> >>> > >> org.apache.myfaces.trinidad.core >>> > >> </default-render-kit-id> >>> > >> </application> >>> > >> --------------------------------------- >>> > >> >>> > >> >>> > >> Any suggestions? >>> > >> Thanks a lot! >>> > >> >>> > >> Wolfgang >>> > >> >>> > >> >> > > >> > > > > > > > > > > -- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org