5 Replies Latest reply on May 7, 2007 10:29 AM by Ovidiu-Catalin

    Moving Portlet Windows

    Norman Barker Newbie

      Hi,

      I am using JBoss Portal 2.6.0-DR1, and moving/dragging portlet windows around the screen using Ajax is fine when I am not logged into the portal. As soon as I log into the portal I can no longer move portlets around!!

      Is there a fix for this?

      thanks,

      Norman

        • 1. Re: Moving Portlet Windows
          Thomas Heute Master

          Go to the personal dashboard by clicking on "Dashboard".

          • 2. Re: Moving Portlet Windows
            Ovidiu-Catalin Newbie

            Does anybody know why the order of the portlet windows is not consistent in dashboard?

            For instance, place several portlets in the dashboard, then start moving them around but remember their last position; then, refresh the page (F5). You will observe that the order of the portlets is not as the one before the refresh occurred. Is it something related to caching portal object properties before committing them to db? Is this a bug?

            • 3. Re: Moving Portlet Windows
              Ovidiu-Catalin Newbie

              Another problem:

              Assuming you are in dashboard, have you noticed that if you maximize a portlet and try to move it, although there is only one maximized region it will stick to the same coordinates (i.e. the position does not change).
              BUT! Once you hit the normal action mode, the dashboard will display all its portlets except the one you maximized & moved?

              Is this a bug? I've been doing some debug and modified the MoveWindowCommand to skip its execution if the position remains the same. Is there another workaround?

              • 4. Re: Moving Portlet Windows
                Viet Master

                interesting feedback

                probably that the DnD should not be enabled for maximized regions at all.

                if you modify org.jboss.portal.theme.impl.JSPLayout and modifiy it with :

                 ...
                 pageResult.setLayoutState("maximized");
                 wc.setRegionName("maximized");
                 wc.setOrder(0);
                
                 // Begin new code
                 DynaRenderOptions options = DynaRenderOptions.getOptions(Boolean.FALSE, null);
                 Map props = pageResult.getRegion("maximized").getProperties();
                 options.setOptions(props);
                 // End new code
                


                it should prevent maximized region to be draggable, could you try that ?

                • 5. Re: Moving Portlet Windows
                  Ovidiu-Catalin Newbie

                   

                  Interesting feedback probably that the DnD should not be enabled for maximized regions at all.
                  if you modify org.jboss.portal.theme.impl.JSPLayout and modifiy it with : ...
                  it should prevent maximized region to be draggable, could you try that ?


                  Thank you! Problem solved! The DnD is not enabled for the maximized strategy.

                  Do you know any solution for the first post? A.K.A
                  Does anybody know why the order of the portlet windows is not consistent in dashboard?


                  Any help is appreciated. Thanks again!