DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22712>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22712 Portlet Customiser doesn't display content properly if you have two instances of the same portlet Summary: Portlet Customiser doesn't display content properly if you have two instances of the same portlet Product: Jetspeed Version: 1.4b5-dev / CVS Platform: PC OS/Version: Windows XP Status: NEW Severity: Normal Priority: Other Component: Customizer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If you add the same portlet more than once to a pane and select "Tab Pane" as the layout, your portlets are not displayed properly. If you look at the PSML file I have listed below, I have 2 IFramePortlets but with different titles (Google and Yahoo). However in the pane customizer these two are both displayed under the name "Google". After tracing back to the action class ( RowColumnControllerAction.java) I found that it's creating a HashMap of titles using the parent portlet as the key. But in this case since they both have the same parent (IFramePortlet) only one entry survives. titles.put(entry.getParent(),entry.getMetaInfo().getTitle()); This doesn't happen with MultiColumn Layouts. That uses the portlet ID as the key. titles.put(entry.getId(), pentry.getTitle()); Not sure if this is a bug or a design feature ? What effect would it have if we change this to use the portlet ID as the key ? <?xml version="1.0" encoding="iso-8859-1"?> <portlets id="P-f71d1de6c6-10003"> <metainfo> <title>My WebPages</title> </metainfo> <control name="TabControl"/> <controller name="TabController"/> <entry id="P-f71d1e2b3c-10004" parent="IFramePortlet"> <metainfo> <title>Yahoo</title> </metainfo> <control name="TitlePortletControl"/> <parameter name="source" value="http://www.yahoo.com"/> </entry> <entry id="P-f71d1e4d26-10005" parent="IFramePortlet"> <metainfo> <title>Google</title> </metainfo> <layout position="-1" size="-1"> <property name="column" value="0"/> <property name="row" value="0"/> </layout> <control name="TitlePortletControl"/> <parameter name="source" value="http://www.google.com"/> </entry> <entry id="P-f71d27c8dc-10006" parent="HelloJSP"> <metainfo> <title>HelloJSP3</title> </metainfo> </entry> <entry id="P-f71d27df28-10007" parent="HelloJSP"> <metainfo> <title>HelloJSP2</title> </metainfo> </entry> <entry id="P-f71d27e38a-10008" parent="HelloJSP"> <metainfo> <title>HelloJSP1</title> </metainfo> </entry> </portlets> Thanks, Roshan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
