wood burning stoves 2.0*
The moose likes Portals and Portlets and the fly likes Jahia  - Multiple portlets on a single page - MESS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Jahia  - Multiple portlets on a single page - MESS" Watch "Jahia  - Multiple portlets on a single page - MESS" New topic
Author

Jahia - Multiple portlets on a single page - MESS

Ashish Sawant
Greenhorn

Joined: May 28, 2009
Posts: 1
Hi,

I have developed two struts portlets(in 2 differrent wars) using Struts Bridge-1.2.7-1.0.4.
The struts version is 1.2.7.
I am using Jetspeed as my portlet container.

These portlets are then embedded onto Jahia portal.

The portlets work fine when run independently, i.e. one portlet on a page. However, the problem starts in case of multiple portlets on a single page and that too, from second portlet onwards.

As per my undersatnding, on submit of first page,
i. An ActionRequest is generated, wherein my struts action get called and I forward to a jsp(in my case a RenderAction with redirect=true which then forwards to a jsp).
ii. A RenderRequest cycle begins for each portlet during which the struts render conext is restored(for the portlet we submitted) and next page is displayed.

This should happen for all portlets on a page irrespective of their position(container position).

In my case, everthing works as expected in case of first portlet on a page. However, the problem starts in case of second(or consequent portlets).

The following are sequence of events that happens on submit of first page of second portlet.

i. Action request is trigerred for the second portlet and my Action gets called. I forward to a render action(dummy action which forwards to a jsp with redirects in place).
ii. Render Request occurs for other portlet as expected.
iii. Now, something happens which I fail to understand .......
The action mentioned as 'ViewPage' in my portlet.xml gets called (which is the method which populates data from DB)
This action forwards to the first page of my application (which I can make out frm the log statements). However, before the page can be rendered, another render request comes in which takes me to the jsp I originally forwarded during my ActionRequest.

This happens whenever I submit a button from my second portlet.

I just dont find a reason why this should happen.


Any suggestions in this regards are welcome.

Thanks in advance.






 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jahia - Multiple portlets on a single page - MESS