1 2 Previous Next 26 Replies Latest reply on Jun 24, 2009 7:50 AM by claprun Go to original post
      • 15. Re: Cross Page wiring in JBoss
        theute

        Still dorothy you didn't provide us your usecase, why do you need this feature ? (Any concrete example as helmer provided ?)

        • 16. Re: Cross Page wiring in JBoss

          ok, my usecase is that i have a navigation portlet on every portal page. When a link is clicked in the navigation portlet, suppose LinkA, then portletA shows up in the right column. So this will be Page A actually with Navigation Portlet on left and PortletA on right.

          Now suppose I click the link B in Page A. What I get now is PageB, with Navigation Portlet on left and PortletB on right. Similarly other links can now be clicked from navigation portlet in PageB.

          I would need cross-page wiring to implement this scenario.

          • 17. Re: Cross Page wiring in JBoss
            theute

            Ok, so for this you don't need what has been discussed here (cross page eventing).
            In fact the scenario you mentioned is a scenario that is used in the samples that you can deploy on JBoss Portal. There is a menu on the left column to open various pages on which there are various samples.

            Also I am surprised (or I misunderstood) that what you describe works with portal events in other portals, the portal shouldn't redirect you on event listening.

            • 18. Re: Cross Page wiring in JBoss

              okay, I have checked it in WPS and it works fine. In WPS you can create al lthe pages and their respective portlets in them. e.g. Page A has nav. portlet and POrtletA, page B has nav portlet and PortletB etc. Now using wiring tool, we can create cross-page wires. At runtime, when the link is clicked, no matter which page you are on currently, it will automatically navigate to the desired page which will become the current view then.

              • 19. Re: Cross Page wiring in JBoss
                theute

                You can achieve the same thing with JBoss Portal check the samples.

                As you mention the only spec that exists in that domain is the JSR-286 spec which doesn't concern the notion of pages. The thing you mention is proprietary to WPS, so of course it will work with WPS and of course won't work the same way in JBoss Portal. I hope you understand this.

                Now the notion of events are made to trigger events in a blind way, one portlet should be able to emit events without caring who's listening, same for listeners they shouldn't have to care if there are other listeners.

                If the event redirect from page to page, that can lead to interesting things, the page you will land is then totally random.

                So now the question is 'do we call the event phase from portlets that are not on the same page from the current one ?', so far I haven't seen a usecase where this should happen, and this is not helping our users/customers to allow this as most scenarios I heard of are mis-understanding of what the events in JSR-286 are about (UI).

                Now, hilmer's idea requires to not only trigger the event phase from other pages but also the render phase and 'somehow' dynamically update the content on the opened page which should start with a proof of concept if there is any picker on this idea :)

                I don't see how the scenario you mention relates to that, from what i read you just want to build URLs to call other pages in fact in that case you would not even want portlets from the same page to listen to the event.

                This is part of the extension to the PortletRequest that we provide, see the catalog portlet: https://svn.jboss.org/repos/portal/tags/JBoss_Portal_2_7_2/core-samples/src/main/org/jboss/portal/core/samples/catalog/CatalogPortlet.java

                • 20. Re: Cross Page wiring in JBoss

                  So do you mean to say that when an event is fired, the current view should not change even in case of cross-page wires i.e. if portlet A is on page A and portlet B on page B and there is a wire from A to B, then after the wire is triggered, the current view should remain as Page A and not B. Is that what it means?

                  Regards

                  • 21. Re: Cross Page wiring in JBoss
                    theute

                    Yes, exactly.
                    Events mechanism need to be deterministic. And a portlet emitting an event should not worry about the various event wirings.

                    If we take your example further, Page A, Page B, page C with respective Portlet A, Portlet B, Portlet C

                    say an event submitted from a link on Portlet A is wired to Portlet B and Portlet C, on which page will you land ? (ordering of wires in not an option ;) )

                    If you are looking for a solution that would work accross all portals, you won't be able to achieve that, you can create cross-portal-vendor *portlets* but not cross-portal-vendor *portals* (unless you defined a complex level of abstraction between vendors)

                    • 22. Re: Cross Page wiring in JBoss

                      Thanks for this information. I wanna check the code samples' URL that you had suggested. But it asks for a username passwd. It is a secure URL. Could you pl. suggest how to access the code sample.

                      Further, for hilmer's use case we need cross-page eventing. So will it be apt to raise a jira for it? What is the process to do that please?

                      Thanks

                      • 23. Re: Cross Page wiring in JBoss
                        theute

                        Sorry for the link:
                        http://anonsvn.jboss.org/repos/portal/tags/JBoss_Portal_2_7_2/core-samples/src/main/org/jboss/portal/core/samples/catalog/CatalogPortlet.java

                        For Jira, the url is http://jira.jboss.org, there is a JBoss Portal project where anyone can open a feature request. But to be implemented we would first need to agree on the feature, because this won't solve *your* usecase.

                        • 24. Re: Cross Page wiring in JBoss

                          Yeah, I have checked the jira.jboss.org, but this only let's you to view the already raised tickets on the Home Page. I am not sure which link is for raising a new request. I am afraid but this may not be the right forum to ask such questions.

                          • 25. Re: Cross Page wiring in JBoss
                            theute

                            "Create new issue" at the top of the screen.

                            • 26. Re: Cross Page wiring in JBoss
                              claprun

                              If you create a JIRA issue for this, please reference this forum post in the appropriate field of the JIRA issue as well.

                              1 2 Previous Next