4 Replies Latest reply on Oct 27, 2010 6:09 AM by claprun

    Coordonate portlets across pages thanks to eventing

    funkybreizh

      In GateIn is there a way to coordonate portlets across pages thanks to eventing?

       

      Something like this :

       

      http://developers.sun.com/portalserver/reference/techart/jsr286/jsr286_3.html

        • 1. Re: Coordonate portlets across pages thanks to eventing
          hoang_to

          For event-based portlet coordination, you could find an example with Account Portlet and Organization Portlet. The event NewAccountAdded is fired

          • 2. Re: Coordonate portlets across pages thanks to eventing
            claprun

            That's not the point of the question. JBoss Portlet Container, on which GateIn is based, supports JSR-286 events. The question is whether or not GateIn Portal offers event mediation across pages i.e. transmit events to portlets whether they are displayed on the same page or not. If I recall properly, JBoss Portal offered such an option. I actually don't know what GateIn supports in that respect…

            • 3. Re: Coordonate portlets across pages thanks to eventing
              theute

              No we always restricted to the same page, it's considered bad practice and usually and abuse of the portlet event mechanism (To do it cross pages).

              • 4. Re: Coordonate portlets across pages thanks to eventing
                claprun

                OK, thought we had something like this since I remembered this had been discussed.

                 

                And, yes, I agree that events across pages is bad™ in most instances since it leads to the tendency to use JSR-286 events which are meant for UI events (which are only distributed on a best effort basis, with absolutely no guarantee) as business events (which should be better handled at the application level via JMS for example). However, I can think of a scenario where multi-page events could be useful (in an application with a palette-like window issuing UI events to a main window).