You have to use MyFacesGenericPortlet or a subclass.  Does BodyPortlet extend MyFacesGenericPortlet?

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert


From: Louis Burroughs [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 14, 2005 4:16 PM
To: MyFaces Discussion
Subject: Re: MyFaces Portlet Issue on WebSphere 5.1

 


Sorry - it is /myPage.jsp  

Here is the whole entry:

<portlet>
                <portlet-name>BodyPortlet</portlet-name>
                <display-name>Project Tracking</display-name>
                <display-name xml:lang="en">Project Tracking</display-name>
                <portlet-class>
                        com.mycompany.ptw.portlet.BodyPortlet
                </portlet-class>
                <init-param>
                        <name>default-view</name>
                        <value>/index.jsp</value>
                </init-param>
                <expiration-cache>0</expiration-cache>
                <supports>
                        <mime-type>text/html</mime-type>
                        <portlet-mode>view</portlet-mode>
                </supports>
                <supported-locale>en</supported-locale>
                <portlet-info>
                        <title>Project Tracking</title>
                </portlet-info>
        </portlet>


Louis M. Burroughs III

 

Ryan Wynn <[EMAIL PROTECTED]>

12/14/2005 04:12 PM
Please respond to "MyFaces Discussion"

       
        To:        MyFaces Discussion <[email protected]>
        cc:        
        bcc:        
        Subject:        Re: MyFaces Portlet Issue on WebSphere 5.1




On 12/14/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
>
> Issue:
>
> My Faces portlets are not rendering.  I think it's because the FacesServlet
> is not being invoked to render the faces content.
>
> If I set my default-view to mypage.jsf or mypage.faces instead of mypage.jsp
> in the portlet.xml get an IllegalStateException telling me it cannot
> redirect because the response has already been commited.
>
> If I set my default-view to mypage.jsp and mypage.jsp has jsf tags for
> content I get an IllegalStateException telling me the the URI has to be
> absolute.
>
> Lastly, if I set my default-view to index.jsp and index.jsp redirects to
> home.jsf,  I get nothing (a blank portlet with no exceptions).
> <%
>         response.sendRedirect("home.jsf");
> %>
>
> Environment:
> MyFaces 1.1.1
> WebSphere Portal Server 5.1
>  WebSphere App Server 5.1
>
> Here is the trace of the last scenario:
>
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           exiting renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=com.ibm.ws.webcontainer.srt.WebGroup org=IBM
> prod=WebSphere component=Application Server
>           SRVE0180I: [PTW_V3] [/wps/PA_1_0_1UH] [Servlet.LOG]: BodyPortlet:
> init
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           MyFaces already initialized
> [12/14/05 15:25:20:620 EST] 2a41f82b  I UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           PortletContext
> 'C:\PROGRA~1\PORTAL~1\PORTAL~1\installedApps\PTW_V3_PA_1_0_1UH.ear\PTW_V3.war'
> initialized.
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           called facesRender
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.portlet.MyFacesGenericPortlet
> class=org.apache.myfaces.portlet.MyFacesGenericPortlet
> method= org=IBM prod=WebSphere component=UNKNOWN
>           Non-faces request: contextPath = /wps/PA_1_0_1UH
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.application.jsp.JspViewHandlerImpl
> class=org.apache.myfaces.application.jsp.JspViewHandlerImpl
> method= org=IBM prod=WebSphere component=UNKNOWN
>           Created view /index.jsp
> [12/14/05 15:25:20:620 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           entering renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
> [12/14/05 15:25:22:173 EST] 2a41f82b  I UOW=
> source=com.ibm.ws.webcontainer.srt.WebGroup org=IBM
> prod=WebSphere component=Application Server
>           SRVE0180I: [PTW_V3] [/wps/PA_1_0_1UH] [Servlet.LOG]: /index.jsp:
> init
> [12/14/05 15:25:22:183 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.util.DebugUtils
> class=org.apache.myfaces.util.DebugUtils method= org=IBM
> prod=WebSphere component=UNKNOWN
>           View after rendering
> ========================================
> <UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="en_US"
> renderKitId="HTML_BASIC" rendered="true" rendererType="NULL"
> rendersChildren="false" transient="false" viewId="/index.jsp"/>
> ========================================
>
> [12/14/05 15:25:22:183 EST] 2a41f82b  e UOW=
> source=org.apache.myfaces.lifecycle.LifecycleImpl
> class=org.apache.myfaces.lifecycle.LifecycleImpl method=
> org=IBM prod=WebSphere component=UNKNOWN
>           exiting renderResponse in
> org.apache.myfaces.lifecycle.LifecycleImpl
>
>
> Louis M. Burroughs III



have you tried setting the default-view to /mypage.jsp instead of mypage.jsp?

Reply via email to