Is there a way to keep some CAF user session data from the point they log on to the point they log off? ideally I’d like to pass some user session data between portlets.
If I understand correctly JSF scopes application scope lasts from server startup to shutdown and session scope is only the life of the portlet. Unless I’m missing it there doesn’t seem to be a user session scope. I’m assuming if this is the case it’s a restriction of JSF and not CAF per se.
Is there a guide to using the session scope i.e. reading / writing data. I see in designer you can add a managed bean, content provider or data object. I’m not clear how you would use these.
You can access managed beans using resolveExpression from BasePageView. For any other item in the session you can use PortalServlet.getCurrentRequest().getSession() for accessing sessions.
You can access managed beans using resolveExpression from BasePageView. For any other item in the session you can use PortalServlet.getCurrentRequest().getSession() for accessing sessions.