ICE Faces Portlet in OpenPortal Portlet Container and Web Space

There has been discussion in ICEFaces forum and at http://portlet-container.dev.java.net mailing list regarding deploying ICEFaces Portlet in OpenPortal Portlet Container. The issue is that after deploying the ICEFaces portlet(that uses AJAX push capability), when you access the Portlet, you get an ICEfaces popup window in the browser with the message "user session expired" and a "Reload" button. Thanks to the ICEFaces team, they found the issue and mentioned that it was related to the cookies for JSESSIONID and paths. The problem is that the portlet container is running in its own context(/portletdriver) separate from the ICE Faces portlet's context for Ajax requests. And the solution suggested was to deploy the portletdriver at root context.

I found another solution which works if you don't want to deploy portletdriver to the root context. This also works for the case where you deploy Web Space server to a non-root context.

This involves adding the following to the sun-web.xml

   <session-config>
        <cookie-properties>
            <property name="cookiePath" value="/" />
        </cookie-properties>
    </session-config>

After adding this entry you need to redeploy the portletdriver.war/webspace.war.

If you are using OpenPortal Portlet Container on Tomcat, you need to add emptySessionPath to the server.xml.

 <Connector port="8080" .... 
         emptySessionPath="true" /> 
Comments:

will ICE Faces be available in portal pack? if so, is there a expected release date?

Thanks

Posted by Tony Lim on June 29, 2009 at 10:13 PM IST #

The Portal Pack team is working on it. I will convey your comment.

Posted by Deepak Gothe on June 30, 2009 at 03:37 AM IST #

I tried on Jboss EAP server with Liferay 5.1.2 CMS and Icefaces 1.8.2 version. I added <session-config> as mentioned above to the sun-web.xml of Liferay.war. Sesson did't get extended. Am I missing anything else ?

Thanks

Posted by Mohith on February 24, 2010 at 04:47 PM IST #

IceFaces sucks. I was forced to use it for over 12 month - horrible. Just check the many issues posted in the forum and Jira...

Posted by mcahornsirup on September 15, 2010 at 04:19 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Deepak Gothe

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today