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

    How to diplay a portlet in a popup?

    toto toto Newbie

      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