• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Jahia - Multiple portlets on a single page - MESS

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.






 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic