Foren

JSF Portlet ViewScope not working in 6.1.20

Stephen Garvey, geändert vor 11 Jahren.

JSF Portlet ViewScope not working in 6.1.20

New Member Beitrag: 1 Beitrittsdatum: 13.06.12 Neueste Beiträge
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, geändert vor 11 Jahren.

RE: JSF Portlet ViewScope not working in 6.1.20

Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
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.