voyent
Stateless portlets  XML
Forum Index -> Portals & Portlets
Author Message
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


Liferay 5.2.3
ICEfaces 1.8.1

I have a portlet called "Session" that selects its view based on the current state of the user's session.

If the user has no session, I display a login form (I don't use the Liferay login). If the user has a session, I display an appropriate session menu.

The login form has a simple request-scoped backing bean that accepts a user name and password and has appropriate actions for logging in, resetting a password, etc.

If the user leaves the entry screen with the login displayed in the session portlet for too long, the session expires and the user is forced to reload the page.

This shouldn't be necessary for the login form. Is there any way to declare to ICEfaces that a particular view within a portlet should be stateless and not force a reload after a timeout?
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


ICEfaces is very much session-based and there is currently no way to tell a specific view to be stateless. So if you are using ICEfaces to present a view, the session will be created, regardless of whether or not you create session-scoped beans or use the session yourself.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


That's fine, but is there no way to tell ICEfaces to recreate a session if the session has expired? For most portlets we obviously don't want this, but I really need this portlet to do so. It's the most common user feedback I'm getting right now: don't let the login portlet timeout.
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


As we work on ICEfaces 2.0 running on JSF 2.0, RESTful interaction will be supported, but this isn't currently feasible with ICEfaces 1.8.

As the shortest path, I would probably suggest making the login screen purely JSP-based (ie no ICEfaces).

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


OK, thanks.
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team