Foros de discusión

JSF Portlet ViewScope not working in 6.1.20

Stephen Garvey, modificado hace 11 años.

JSF Portlet ViewScope not working in 6.1.20

New Member Mensaje: 1 Fecha de incorporación: 13/06/12 Mensajes recientes
Hi All

Recently upgrade to 6.1.20, everything working fine except one portlet which uses JSF.

The problem is every ajax click causes the viewscope backend bean to re-instantiate.

Had a look around the web, like this:

http://stackoverflow.com/questions/8804317/postconstruct-method-is-called-even-if-the-managedbean-has-already-been-instant

but we are not using JSLT anywhere.

Anyone came across this before?

Thanks.
thumbnail
Neil Griffin, modificado hace 11 años.

RE: JSF Portlet ViewScope not working in 6.1.20

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
Liferay Faces 3.1.1-ga1 and 3.1.2-ga2 underwent QA testing in liferay-portal-6.1.20-ee-ga2 and the ViewScope tests passed OK with Mojarra 2.1.3-b02. I just tried the jsf2-portlet demo in 6.1.20 again and it worked.

Are you using a newer version of Mojarra like 2.1.16 or 2.1.17? There are some issues with ViewScope in those versions which might be causing difficulties. For example, Ted Goddard of ICEsoft mentioned in JAVASERVERFACES-2688 that ICEfaces does not support Mojarra 2.1.17.