users@jsf-extensions.java.net

Re: Portlet support

From: noah <iamnoah_at_gmail.com>
Date: Tue, 8 May 2007 12:50:01 -0500

Caveat: I have no experience with portlets. I think I remember seeing
an error like this though.

Firstly, if you're not using JSF 1.2, it wont work. Also web.xml needs
to contain:

   <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <init-param>
         <param-name>javax.faces.LIFECYCLE_ID</param-name>
         <param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
   </servlet>

I don't know what the equivalent would be for portlets, assuming you
don't use web.xml.

On 5/8/07, mike.sauer_at_convergys.com <mike.sauer_at_convergys.com> wrote:
>
> It appears that DynaFaces is not compatible with portlets.
> When trying to deploy a war file that includes both Dynafaces and
> jsf-portlet.jar I get the following error:
>
> java.lang.IllegalArgumentException:
> com.sun.faces.lifecycle.PARTIAL
> at
> com.sun.faces.portlet.LifecycleFactoryImpl.getLifecycle(LifecycleFactoryImpl.java:86)
>
> If my understanding is not correct, and there is a way for DynaFaces to work
> with portlets, please respond.
>