From: kevs3d <nu...@jb...> - 2005-05-10 14:36:40
|
Hi, There isn't any way as part of the JSR-168 portlet spec, which the JBoss Portal is implemented against. However, it's so useful that the JBoss guys may have implemented an extension specific to their APIs - but I don't know what. The way we did it (back in the days of the Alpha version) was to construct JBoss portal specific URLs. E.g. the way JBoss portal references portlets is through a defined URL format, so if you construct the URLs appropriately you can get other portlets to maximise: http://localhost:8080/portal/index.html?ctrl:id=window.default.CMSPortletWindow&ctrl:type=nav&ctrl:windowstate=maximized So if you know the window ID of your portlet (from your XML config) then you can construct a URL to bring it to the front. You can call portlet actions directly using URLs also. So if you code up a URL with an action request in it, e.g. http://localhost:8080/portal/index.html?ctrl:id=window.default.UserPortletWindow1&ctrl:type=render&ctrl:windowstate=maximized&op=showRegister Add that as the HREF of a link within one portlet, and when clicked it will call an action within another, in this case calling the "showRegister" portlet action event handler on the UserPortlet. Obviously this requires specific knowledge of the JBoss portal and also knowledge of what portlet Window IDs you have - but it works. Hope this helps, Cheers, Kev View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877178#3877178 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877178 |