Forums de discussion

Jsf session scope not working in liferay portlet

Rounak Dasgupta, modifié il y a 11 années.

Jsf session scope not working in liferay portlet

New Member Publications: 4 Date d'inscription: 13/05/13 Publications récentes
I am very new in JSF liferay portlet environment. I have a managed bean which is in session scope. It should be initialize only once during a session. But whenever I open a new portlet, that bean initialize. I have 6 portlets and bean is initializing 6 times.

My second problem is ::
I have a array list which is using in different portlet. Suppose from "Delete User" portlet, I am deleting a value from the list. This is reflecting only on the "Delete User " Portlet. If I go to any other portlet, and want to see the list value, the previous deleted value still persist.

I know this is because of Portlet session. I have tried with adding <private-session-attributes>false</private-session-attributes> in liferay-portlet.xml. But nothing seems to be worked.

Can anyone please guide me to exact way?