The strange thing is that it works in a web application.

 

Who is responsible for saving the state of a component? I’m tracing the flow from the Lifecycle and realized that it goes like Lifecycle.render()->ViewHandler.render()->externalContext.dispatch()->PortletRequestDispatcher.include(). Up to this point no save state is called, so I guess the tag lib will save the state (or call the state manager).

 

Also, does the extension filter have anything to do with state management? I’m not using it in the portlet application (but I’m using it in the web application), since servlet filters are not supported in portlets.

 

Regards.

 


From: Stan Silvert [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 26 de abril de 2006 23:00
To: MyFaces Discussion
Subject: RE: Component state management inside portlets

 

I don’t see how this is possible.  The same LifeCycleImpl.response() is called whether in a portlet or a servlet.  The MyFacesGenericPortlet doesn’t have anything to do with calling StateHolder objects.

 

Maybe you have StateHolder A that wraps StateHolder B.  StateHolder A forgets to call StateHolderB.saveState() ?

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert


From: Marcio E Miranda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 26, 2006 7:51 PM
To: MyFaces Discussion
Subject: RE: Component state management inside portlets

 

Forgot to mention that I’m using MyFacesGenericPortlet as the JSF portlet implementation.

 

Regards

 


From: Marcio E Miranda [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 26 de abril de 2006 18:56
To: MyFaces Discussion
Subject: Component state management inside portlets

 

Hi,

 

We have some custom JSF components in our project that save and restore state. The state management works fine if the components are used in a web application, but if they are used inside a portlet, the save and restore methods are never called. I’ve tried using the client and server methods.

 

Is component state management enabled inside a portlet?

 

Thanks.

 

______________________
Marcio Miranda 

 

 

Reply via email to