6 Replies Latest reply on Sep 21, 2009 4:25 AM by schamarthi

    processing order of windows within page

      in my page (defined in an *-object.xml file), i have 4 windows:

      metaWindow
      headWindow
      menuWindow
      contentWindow

      these objects are stored in jbp_object_node as follows:
      pk;path;name;parent_key;
      122542;"myportal.mypage";"sprechtagsanmeldung";122535
      122543;"myportal.mypage.metaWindow";"metaWindow";122542
      122544;"myportal.mypage.headWindow";"head";122542
      122545;"myportal.mypage.menuWindow";"menuWindow";122542
      122546;"myportal.mypage.contentWindow";"contentWindow";122542

      the primary key determines the processessing order of the windows/portlets i.e. headWindow (122544) will be processed before contentWindow (122546).

      what i would like to do now is to set the processessing order, so that contentWindow is the first window/portlet that is processed. is there a possibility to tell jboss portal what the order will be?

      portal version is 2.2

        • 1. Re: processing order of windows within page
          theute

          Forgot about 2.2 but don't you have a "height" tag in -object.xml ?

          • 2. Re: processing order of windows within page
            theute

            I implicitly thought you were talking about ordering the windows to order them in the layout.

            If you were really talking about processing (or computing), no you cannot give an order, you should not depend on the ordering. Each window could in theory could be rendered in parallel.

            • 3. Re: processing order of windows within page

              thanks about your quick reply.
              so, if i can´t set the processing order, how can i take influence on the ordering/sorting in the database (e.g. via the name of the window (aaaWindow has a lower id than zzzWindow), the length of the name, etc.)?

              unfortunately for our application it is very important, that the windows/portlets are processed in a specific order

              • 4. Re: processing order of windows within page
                theute

                What if we change the engine to have parallel rendering ? Then the ordering would be totally random.

                It's a possibility open by the JSR-168 spec.

                Look at "PLT.5.2.4 Request Handling"

                The render requests may be executed sequentially or in parallel without any guaranteed order.


                Your app must not depend on the ordering of the windows. The only guarantee you have is that the action phase of the triggered portlet will be called before any rendering.

                Since all the render phases shouldn't have side-effect, it shouldn't be a problem.

                • 5. Re: processing order of windows within page

                  i know that our solution is not 100% clean - but now we need some workaround concerning the processing order until we can fix the problem

                  • 6. Re: processing order of windows within page
                    schamarthi

                    activating very old thread. I don't think this might have changed as per spec

                    but I have a redirect in one of the portlets and i don't want other portlets to process at all.

                    How can I influence that ?

                    Right now, even though I am redirecting in one portlet, the other portlet is still invoked.

                    I want to depend on the order here and How do I restrict this ? any suggestions ?