Inter portlet communication, load order, portal server 7

Hi.
I�m struggling with a portlet application, which uses interportlet communication. PortletOne creates an ArrayList of objects and add the list to the portletSession. PortletTwo displays the first object in the ArrayList.
The trouble seams to be the load order of the portlets. If portletTwo loads before PortletOne, the ArrayList is empty, and it displays nothing.
Any idea how I can be sure that my page loads PortletOne before PortletTwo?

If your intention is to transfer data(Array List of Objects) from from one portlet to the other, you need to use InterPortlet Communication API rather than putting the data in the session. In the first portlet set the event data and fire the event and in the second portlet, get the event data.
The order in which the events are fired is not guaranteed. i.e if portlet fires an event to portlet1, portlet2 and portlet3, the order in which the portlet1, 2 & 3 will receive the events is not guaranteed. Load order of portlets does not cause any problems.

Similar Messages

  • How we develop inter-portlet communication in plumtree portal using IDK

    1)How we will develop inter-portlet communication in plumtree portal using IDK .
    is it possiable using Master Detail Pattern? or any other alternate way.
    Regards
    Dheeraj Sai

    This can be done by developing Adaptive Portlets:
    http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/PlumtreeDevDoc_Integration_Portlets_Adaptive_Intro.htm

  • Problems with Inter-Portlet Communication in Weblogic Portal 10.3

    Hi,
    I'm developing a web application using Weblogic Portal 10.3.
    The requirement is that the work requests have to be stored in a workbasket which can be submitted by the user at the end.
    The user can create multiple request of same form.
    Consider a scenario that the user creates 5 instances or work request in a single form. No he moves back to the 2nd request and modifies it. While modifying the 2nd request a validation message is thrown. Now the user navigates to Workbasket directly by selecting the Workbasket from the menu item.
    Now when the user selects any one of the 5 requests, he is able to view the same validation message which is thrown as said in the above scenario. This is happening only when the user navaigates from the workbasket. If the user switches between the request, the problem is not simulated.
    Someone please help me how this can be avaoided.
    More Information:
    Weblogic Portal 10.3
    JSF 1.2
    Spring
    Message is thrown using the FacesMessage in JSF and is displayed in the screen using the following JSF tag.
    <h:messages globalOnly="true" rendered="#{! empty facesContext.maximumSeverity}" styleClass="liststylenone"/>

    Hi,
    Could someone pls explain which cache is used to cache portlet content and in which form the content is cached?

  • Inter portlet Communication - Events and Parameters

    Hi,
    I just tried a sample inter portlet communication using events and parameters.
    I used the below code to enable inter portlet communication between two struts portlet.
    UrlUtils.constructLink etc
    The above works fine. Instead of link, I would like to use a form button to fire the event.
    Is there any way of using button to fire the event.
    Another thing I noticed is that when the event is fired the page gets refreshed.
    How to enable inter portlet communication without the portal page refreshing.
    Many Thanks in advance!!!!!!!!
    -Chid

    Hi Natu,
    To start: read the documentation: http://download.oracle.com/docs/cd/B32110_01/webcenter.1013/b31074/jpsdg_java_adv.htm#CHDHDCGI
    Then, you need to make sure the portlets can operate independently. That means: the locations portlet should be able to run without the incidents portlet.
    What you should try to achieve is create a locations jspx that uses a page parameter with the incident number as input. The page can then be populated based on that id.
    The key thing here is: input portlet variables are available as page parameters.
    Then, you need to add some functionality to the incidents portlet to submit the selected incident number to the outside world. You can do this using some backing bean code. Example:
        public void transmitEvent(ActionEvent actionEvent) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExternalContext externalContext = facesContext.getExternalContext();
            Object response = externalContext.getResponse();
            if (response instanceof javax.portlet.ActionResponse) {
                ActionResponse actionResponse = (ActionResponse)response;
                // setting the portlet OUT parameter
                String outResult = "my output";
                actionResponse.setRenderParameter("outParam",  outResult);
           } else {
                // not in portlet environment
        }Hope this brings you further.
    Jeroen van Veldhuizen

  • Event interface for inter-portlet communication

    In which jar file can I find the com.bea.netuix.events.Event interface?
    I wish to offer some support for inter-portlet communication while running inside a 8.1sp4 weblogic portal server.
    Firstly, there is almost no documentation for working with Custom/Generic Events and definitely none for working with "Invoke a java portlet method"
    Found out by decompiling the code that you can do the following:
    add methodName(HttpServletRequest, HttpServletResponse, Event) to you backing file, or
    add methodName(ActionRequest, ActionResponse, Event) to your java portlet
    In both cases, I need find the jar file containing the "Event" interface. Have found most of the other classes in netuix_servlet.jar
    Would also appreciate any further info on when the above methods actually get called with respect to the "processAction" and "processRender" methods for jsr168 portlets...

    Found the answer after a pretty manual search - its located inside:
    BEA_HOME/weblogic81/portal/lib/netuix/system/netuix_system.jar
    All other interfaces being inside the WEB-INF/lib/netuix_servlet.jar, this one class from this package has been packed into a jar at the system classpath level!!
    Had to manually look at the classpath in startWeblogic.cmd and then open up every jar file, follow dependent jar files via the manifest.mf etc...

  • Inter-portlet (JSR286) in liferay portal

    i had created two portlets using ADF and i can consume them in WebCenter Portal apps. Nothing has to do in the portal side as webcenter auto-wire the portlets. The question is how i can consume the portlets in liferay? is there any step required in the liferay portal site to 'wire' the portlets so that they can communicate with each other? or just like drag and drop in webcenter? I developed the portlets using the guide here: http://yonaweb.be/inter_portlet_communication_jsr_286_and_webcenter_11g_ps3

    Wiring portlets together in liferay not dependend on the portlet. Because your portlets are standard based, liferay doesn't care if they are ADF portlets, JSP portlets or portlets build with other technology.
    Information on how to do this in liferay should be found in the documentation of liferay: http://www.liferay.com/community/wiki/-/wiki/Main/Inter-portlet+communication
    Just a question... Did you had any issues with consuming the portlets in liferay. I have tried it in the past and had lots of issues with libraries and so on. Especially because ADF uses a lot of javascript and I had a hard time configuring it properly with liferay...

  • Inter portlet communication in SP4

    Can any one tell me in step by step process with sample code to do inter portlet communication in SP4
    Here i have 2 portlets
    Portlet A and portlet B
    Portlet A has 2 hyperlinks link1 and link2
    When i click link1 or link2 in portlet A, i am passing a parameter,depends on the paramater i have to display some details in portlet B
    Thanks
    maria
    [email protected]
    Message was edited by marianair at Feb 10, 2005 2:27 AM

    hi,
    implement both portlets as page flow portlets. For both the links in portlet A, implement an action that generates an event and fires thisone. Then let the pageflow in portlet A show whatever content is appropriate, eg. the same as before the link.
    Portlet B cathces this event and in the connected pageflow action does whatever it needs to do and redirects to the appripriate JSP.
    Just remeber that you probably needs to use a custom event here.
    For details on IPC and events, see doc:
    http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm_wkshp.html
    As an alternative you can use the SP3 mechanism, I find thisone somewhat more cumbersome and messy.
    http://e-docs.bea.com/workshop/docs81/doc/en/portal/howdoi/howInterPortletComm.html
    Feel free to post follow-ups if you get stuck.
    - Anders M.

  • Inter Portlet communication without using workshop

    Hi
    Does any one have any luck trying to do inter portlet communication without using weblogic workshop IDE?

    Hi Curt,
    WLP's eventing system is designed such that portlet's don't have to care
    whether the source/destination is local or remote. If you have a portlet
    that fires/consumes events, when you create a proxy portlet on a
    consumer, the portlet on the producer will be able to fire and receive
    events without any changes to it. In this scenario, the proxy portlets
    work with the WLP's event runtime to collect and dispatch events on
    behalf of portlets on the producer. Going forward, WSRP 2.0 and
    JSR168-next's eventing models will be mapped to the same WLP event runtime.
    Subbu
    Curt Smith wrote:
    Thanks Subbu for your enlightenment here and in this group!!
    You mentioned my next quest, WSRP'ifying my portlet & IPC system.
    Can you suggest an WSRP example anywhere on the net or in bea?
    I guessing that suitability of IPC is also a function of whether the portlets are the remote portlets or the local portlets.
    Might a non-Bea IPC choice be usable within the local portlets, which are WSRP clients to stand alone remote portlets?
    I can imagine now that you mention it that the remote WRSP producer portlets can't use just any IPC facility and the events be pushed inband to the consumer portal...
    tnx curt

  • Struts Portlet - inter Portlet communication

    Hi
    How to make inter Portlet communication in Struts portlets?
    Thanks
    Subin

    A quick google search brought back this:
    http://download.oracle.com/docs/cd/B15904_01/portal.1012/b14134/pdg_java.htm

  • Inter-Portlet Communication Best Practices

    Here's the situation:
    There are 2 Portlets on a page; a Search Portlet and a List Portlet. When a user selects search criteria in the Search Portlet and presses the Submit button the items displayed in the List Portlet must be updated to reflect the search criteria that was entered.
    My approach to implementing this:
    When the user presses the Submit button the Search Portlet code will take the information entered by the user and create a searchObj. This searchObj will be attached to the Http Session object. When the Search Portlet is rendered again in the browser it will recognize (via a hidden HTML attribute) that it needs to inform the List Portlet that there is new search criteria. The browser will then generate a Portal Event that will cause the List Portlet to refresh its list based on the searchObj it finds attached to the Http Session object.
    Question 1:
    Assuming this is a reasonable approach how do I get the Search Portlet to generate an event based on a HTML hidden field at the time the Portlet is rendered?
    Question 2:
    Is there a better way to implement this type of functionality? Essentially the problem is that one Portlet needs to process some data and once it's done it needs to notify other Portlets. What are the best practices for this type of situation?
    Any suggestions are welcome.

    Hi,
    As per the JSR 168 Specification, we follow PortletSession with APPLICATION_SCOPE for implementing IPC ( inter portlet communication ).
    Here are the steps for IPC:-
    1. When you press submit from search portlet then fetch the search string value into the processAction method of the search portlet.
    2. Put the search string value in the portlet session with APPLICATION_SCOPE.
    3. When you press submit of search portlet, doView() method of both the portlets
    ( Search and List ) will be called.
    4. in the doView() method of List portlet retrieve the search string from the portlet session and call the business logic based on the search criteria.
    5. Put the search result into bean or as per your framework design.
    6. Iterate the bean value on to your List portlet rendering jsp.
    Note:-Here it is assumed that both the portlets are in the same ear/war.
    The coming JSR 286 specification, allows a portlet to send and receive events and perform state changes or send further events as result of processing an event.
    In JSR 286, we would be having one more request and reponse called EventRequest and EventResponse.
    Comments and suggestions are welcome for IPC.
    Thanks
    <Neeraj Sidhaye/>
    Try_Catch_Finally AT YAHOO DOT COM
    http://ExtremePortal.blog.co.uk

  • Inter portlet communication using a float portlet

    Hi,
    I am trying to achieve inter portlet communication between a jsp portlet and a pageflow portlet.
    The jsp portlet will open up as a pop up window or as a float portlet.
    I am using BEA Weblogic 8.1 SP5.
    Has any body tried this IPC when the jsp portlet is a float portlet?
    If there is any documentation available for the same?
    Thanks,
    Shreesh

    Hi,
    Thanks for the reply.
    In the search.jsp I am adding an action associated with a form bean, and passing the search string to the form, which will pass the request to the action method. This is the code snippet:
    * @jpf:action
    * @jpf:forward name="success" path="search.jsp"
    protected Forward searchcriteria(SearchcriteriaForm form)
    String searchString = form.getString();
    try {
    URL url = new URL("http://localhost/demo_search.asp");
    HttpURLConnection http = (HttpURLConnection) url.openConnection();
    http.setRequestMethod("POST");
    PrintStream out=new PrintStream(http.getOutputStream());
    out.println("searchParam=searchstring");
    out.flush();
    out.close();
    BufferedReader reader=new BufferedReader(new InputStreamReader(http.getInputStream()));
    reader.readLine();
    String patternStr = "pattern";
    Pattern pattern = Pattern.compile(patternStr);
    Matcher matcher = pattern.matcher("<a href");
    // Retrieve all lines that match pattern
    String line = null;
    while ((line = reader.readLine()) != null)
    out.println("***"+line+"***");
    matcher.reset(line);
    if (matcher.find()) {
    // line matches the pattern
    } catch(Exception e)
    e.printStackTrace();
    return new Forward("success");
    * FormData get and set methods may be overwritten by the Form Bean editor.
    public static class SearchcriteriaForm extends FormData
    private String string;
    public void setString(String string)
    this.string = string;
    public String getString()
    return this.string;
    The question is what should be the return forward for the search coz, the result should be displayed in a seperate portlet. Also, how do I capture only the result in the result.jsp.
    I would appreciate if you help me,
    Thanks in Advance,
    Sailatha

  • How to perform inter-portlet communication in alui6.1.

    I want to perform perform inter-portlet communication in alui6.1. I don't have any clue to how to do it.
    Can anyone help me.

    Frankly, I did it using jQuery. When you have just two portlests on page, you can hardcode object id of second portlet in a code (not so nice, but very fast to see results). Otherwise you can use portlet settings to stay more environment independent.
    In brief, in first portlet via ajax I request for data, using css selector jQuery, paste content to div in second portlet.

  • Proxy/Provider Portlets on same/multiple Portal Server instances

    Hello All,
    I would like to the Pros and Cons for the following architectural scenarios:
    Proxy Portlets and Provider Portlets on the same Portal Server Instance
    Vs
    Proxy Portlets and Provider Portlets on different Portal Server Instances
    Can some one explain me the same?
    Thanks a ton!
    Ananth

    Hi
    This seems like an architecture question. The best place to post this is @ http://swforum.sun.com/jive/forum.jspa?forumID=80
    Thanks
    Srini

  • Inter Portlet Communication for JSR 168 Portlets

    Hi,
    I want to invoke one JSR168 Portlet from another and also pass parameters between the two.I did the same using Events for Oracle Portlets.
    I would like to know how to do the same when I build JSR 168 Portlets.
    Also Pls let me know where I can get documentation which describes all the possible options that I can try out on JSR168 Portlets
    Regards
    Yash

    Hello Yash,
    The current version of the specifications does not support Parameter and Events that allow you to create portlet 2 portlet communication using OracleAS Portal framework.
    If the reusability of the parameter is not a major requirement of your application you can simply use URL parameters and this will authorize you implement that.
    Regards
    Tugdual Grall

  • Creator2 JSF implementation in portlets deployed to Sun Portal Server 6.2

    Hi all,
    I have a portlet created with Sun Java Studio Creator 2 EA2 and I want to run it on Sun Portal Server 6.2. It works fine with standard JSF implementation (a corrected version, where web.xml replaced with a simple version for standars JSF without pluto servlet) but it throws the following exception with the com.sun.web.ui.* implementation:
    [#|2005-11-26T19:24:43.822+0100|SEVERE|sun-appserver-ee8.1_02|javax.enterprise.system.container.web|_ThreadID=13;|WebModule[/UserInfoPortlet]com.sun.web.ui.component.Form
    javax.faces.FacesException: Can't instantiate class: 'com.sun.web.ui.component.Form'.
            at com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:728)
            at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:352)
            at com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1068)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:342)
            at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4010)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4522)
            at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
            at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
            at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1298)
            at com.sun.enterprise.web.HttpServiceWebContainer.loadWebModule(HttpServiceWebContainer.java:818)
            at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1025)
            at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:160)
            at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:238)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:918)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:905)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:427)
            at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
            at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:288)
            at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:155)
            at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:258)
            at com.sun.enterprise.deployment.phasing.StartPhase.runPhase(StartPhase.java:87)
            at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:71)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:633)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:361)
            at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:396)
            at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:702)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:302)
            at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:357)
            at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
            at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
            at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
            at $Proxy1.invoke(Unknown Source)
            at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:272)
            at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
            at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
            at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:226)
            at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2071)
    |#]My test was the sample web application described at http://developers.sun.com/prodtech/javatools/jscreator/ea/jsc2/learning/tutorials/portlets.html . In the working standard test application I put portlet.jar and jsf-portlet.jar into the .war file, in the extended JSF implementation I put com-sun-web-ui-appbase.jar and webui.jar too.
    Has anybody used it or knows the solution?
    Thanks,
    Jozsef Borcsok

    A Free 90-day trial of Sun Java[tm] Studio Enterprise 7 is available for the Solaris and Windows platforms in three languages - English, Japanese, and Simplified Chinese.
    http://www.sun.com/download/products.xml?id=41ba2d7f
    Sun Java Studio Enterprise 7 2004Q4, File 1, Multilanguage (jstudio_ent_04Q4-ga-win-1.zip, 329.44 MB)
    Sun Java Studio Enterprise 7 2004Q4, File 2, Multilanguage (jstudio_ent_04Q4-ga-win-2.zip, 371.50 MB)

Maybe you are looking for