Problem solved.

The definition of the view handler for Facelets

<view-handler>com.sun.facelets.FaceletPortletViewHandler</view-handler>
should be removed from the faces-config.xml.

The FaceletPortletViewHandler can be defined as a context-param in web.xml
as followed:

<context-param>
  
<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
        <param-value>com.sun.facelets.FaceletPortletViewHandler</param-value>
</context-param> 



WahidB wrote:
> 
> Hi.
> 
> I currently try to get running my JSF-Application as a Portlet on
> Liferay 5.2.3. The App is implemented with the following frameworks:
> 
> MyFaces 1.2.7
> 
> Facelets 1.1.4
> 
> Trinidad 1.2.12
> 
>  
> 
> Everytime i try to load the portlet, i get the following Exceptions:
> 
>  
> 
> [02.10.09 10:40:44:209 CEST] 00000032 CoreRenderKit E
> org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit
> createResponseWriter No RenderingContext has been created.
> 
> [02.10.09 10:40:44:241 CEST] 00000032 viewhandler   E   Error Rendering
> View[/logintest.jspx]
> 
>                                  java.lang.IllegalStateException: Kein
> RenderingContext
> 
>                 at
> org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.j
> ava:328)
> 
>                 at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComp
> onentBase.java:751)
> 
>                 at
> org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive
> (UIXComponentBase.java:1494)
> 
>                 at
> org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComp
> onentBase.java:771)
> 
>                 at
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
> 
>                 at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:5
> 77)
> 
>                 at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRespon
> seExecutor.java:41)
> 
>  
> 
>  
> 
> Any Idea where the problem is?
> 
>  
> 
> Thanks for any advice.
> 
>  
> 
> Wahid
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--No-RenderingContext-tp25712792p25716036.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to