OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | April 2007 Index

<--  Date Index  --> <--  Thread Index  -->

Struts Bridge - Several Instances of a Struts Portlet


Hello Alexey,
      I have a Struts Portlet called RockPaperScissors which works
correctly with Exoplatform.
When I put several instances of this portlet in a page, I have this error:
      java.lang.IllegalStateException: Duplicate component ID
'RockPaperScissors' found in view.

And the the portlets aren't independant: a submit in one of them will
provoke a forward in all the portlets.

The bridge permits the multi instance
(http://portals.apache.org/bridges/multiproject/portals-bridges-struts/features.html)

In the end of the page, it is about PortletScopeStrutsSession which have to
be true (default is false). To put it true, in portlet.xml


<init-param>
      <name>PortletScopeStrutsSession</name>
      <value>true</value>
</init-param>


It seems to be not sufficient because the problem is still here. I wonder
if the problem
is in ServletContextProvider. Is the ServletContextProvider is the same for
all instances
of one portlet?

Thank you very much
Best Regards,
Mickael Lecoq.





<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.