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

Reply via email to