4 Replies Latest reply on Apr 30, 2010 6:17 PM by yelan_gatein

    how to set portlet WindowState

    yelan_gatein

      In Jboss Portal we can view a portlet maximize by http://yourdomain/your-portlet-nameWindow?windowstate=maximized

       

      In GateIn Portal, it changed to(frontend page):

       

      <div title="Maximize"    onclick="eXo.portal.UIPortalControl.changeWindowState('de1d8e8d-492a-4d13-9f0f-07adad2354b8', 'maximized');"

      Maximize

      </div>

       

      the red characters is portlet id.

       

      my question is if i don't use portlet id how to relized.    

      maybe:   changeWindowState('your-portlet-name', 'maximized');"  (it doesn't work)

       

       

      Much thanks,

      Sully

        • 1. Re: how to set portlet WindowState
          yelan_gatein

          or please support a function for getPortletIdByName.

           

          maybe, i don't know......

          • 2. Re: how to set portlet WindowState
            mwringe

            what exactly are you trying to do?

            • 3. Re: how to set portlet WindowState
              yelan_gatein

              Thanks for your reply.

               

              suppose there are two portlet:  

              1, portlet-name:adPortlet     portlet-id:de1d8e8d-492a-4d13-9f0f-07222222222

              2, portlet-name:annPortlet     portlet-id:de1d8e8d-492a-4d13-9f0f-07111111111

               

              the contents of the two portlets:

              1,  adPortlet:

              <div title="Maximize"    onclick="eXo.portal.UIPortalControl.changeWindowState('de1d8e8d-492a-4d13-9f0f-07111111111', 'maximized');"

              Maximize annPortlet

              </div>

               

              2, annPortlet:

              <div title="Maximize"    onclick="eXo.portal.UIPortalControl.changeWindowState('adPortlet', 'maximized');"

              Maximize adPortlet

              </div>

               

              then we start jbossAS and broswer the two portlets.

               

              1, adPortlet
              when i click "Maximize annPortlet", annPortlet be maximized.
              2, annPortlet
              click the "Maximize adPortlet", it doesn't work.
              i need another way to replace portlet id and relized the maximize.
              • 4. Re: how to set portlet WindowState
                yelan_gatein

                Or maybe GateIn Portal support to define portlet-id by ourself.