1 Reply Latest reply on Nov 4, 2009 1:17 AM by ozguy

    How to diplay a portlet in a popup?

      Hi

      I have a portlet wich contains a dataTable, for each row i want to open a popup portlet.

      Can someone explain to me in details what should i do?
      I saw this post http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4056163, but there isn't anwer.

      For now i added a layout:

      <layout>
       <name>itcorePopup</name>
       <uri>/theme/itcore-popup-layout.jsp</uri>
       <uri state="maximized">/theme/itcore-popup-layout.jsp?maximized=true</uri>
       <regions>
       <region name="left"/>
       </regions>
       </layout>


      i added a page:
      <portal>
       <page>
       <page-name>popup</page-name>
       <window>
       <window-name>PopupAlarmPortletWindow</window-name>
       <instance-ref>PopupAlarmPortletInstance</instance-ref>
       <region>left</region>
       <height>0</height>
       </window>
       </page>
      </portal>
      


      Obviously i added declaration for the portlet and portlet instance.

      Honestly, i don't know if i am on the right way.
      So now how can i call the page "popup" declared in my default portal. Do i have to do a window.open()? how can i get the URL?

      Need help thx

        • 1. Re: How to diplay a portlet in a popup?
          ozguy

          How about using AJAX call and display the content in a div popup.

          Depending on which portal container version you are using, in version 2.0+ there are ways to request resources from portlet container.

          Or you can call a servlet request and display the content in the div.