You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-dev@portals.apache.org by "James May (JIRA)" <br...@portals.apache.org> on 2007/01/01 19:20:27 UTC

[jira] Updated: (PB-49) Multiple instances of a struts portlet should be able to coexist on a single page.

     [ http://issues.apache.org/jira/browse/PB-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James May updated PB-49:
------------------------

      Priority: Major  (was: Minor)
    Issue Type: Bug  (was: Improvement)

I've updated the severity of this issue because I've received several messages from user's saying that is a critical issue for them. I've also changed the issue type to bug because it is incorrect to assume that only one instance of a portlet will exist at a time. It is perfectly reasonable to assume that a weather portlet, for example, may appear serveral times on a page with each instance displaying weather data for different areas of the globe. Changes to one portlet instance (form bean, render attributes, portlet mode, etc.) should not affect other instances. 

I have spent a considerable amount of time creating a fix for this: Here is what I've acheived so far:
The struts bridge (my local) now -
* correctly handles form beans for multiple portlet instances
* correctly handles render attributes for multiple instances
* remembers the portlet mode of each instance and correctly remembers the last page when switching modes (see PB-38)

One outstanding issue that I'm facing is this: When changing from view mode to edit mode, the edit page displays correctly. However after a subsequent render request, the mode icon for that portlet instance changes back to the pencil icon, as if the portlet is in view mode. The edit page still displays and request.getPortletMode().toString() returns "edit". So why is the mode icon and link changing? This has me stumped. Any ideas on this would be appreciated.

> Multiple instances of a struts portlet should be able to coexist on a single page.
> ----------------------------------------------------------------------------------
>
>                 Key: PB-49
>                 URL: http://issues.apache.org/jira/browse/PB-49
>             Project: Portals Bridges
>          Issue Type: Bug
>          Components: struts
>    Affects Versions: 1.0
>         Environment: Any.
>            Reporter: James May
>
> When including multiple instances of a struts portlet on a page, form data for the portlet instances gets clobbered because there is a single form bean that is shared by all instances. Each portlet instance should be able to maintain its state independently of other instances.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org