Need an example of Portlet to Portlet Communication

We need a very simple example of Portlet to Portlet communication in Plumtree 5.01. We need to understand the concept of passing a variable from one Portlet to another.
A good example would be clicking on a link in one Portlet and displaying a parameter from that first Portlet in the other Portlet.
Thanks in advance for your help.
Todd Bocik

There are several ways to do this. The way that I like best is using a User Setting.
1) Pick a name for your setting.
2) Enter the name of the setting in the web service configuration for the two (or more) web services that want to share the setting. Any portlet that needs to "see" the setting must have it specified its web service configuration.
3) When a user clicks on a link in one of your portlets, set the setting: IPortletResponse.SetSettingValue(SettingType.User, "settingName", "settingValue")
4) In another portlet, get the setting and display it: IPortetRequest.GetSettingValue(SettingType.User, "settingName")
The nice thing about doing it this way is that even if your portlets are set to be cached "forever," they will change whenever you change the user setting (assuming you followed step 2).
Hope this helps,
Chris Bucchere
[email protected]
Bucchere Development Group
http://www.bucchere.com| 415.516.3941

Similar Messages

  • Portlet-to-Portlet communication BEA Weblogic Portal 7.0 SP2 Windows environment

    I am new to BEA Weblogic Portal. I have a page with 3 portlets. Portlet 1 searches
    and displays data in portlet 2. When you click on a specific link in portlet
    2 it displays detailed data in portlet 3. This all works fine. My Problem is
    when I execute another search in portlet1 the results show up fine in portlet
    2, however portlet 3 still has the details from the previous search. How can
    I resolve this issue? Any advice on how to deal with caching in general?

    I am new to BEA Weblogic Portal. I have a page with 3 portlets. Portlet 1 searches
    and displays data in portlet 2. When you click on a specific link in portlet
    2 it displays detailed data in portlet 3. This all works fine. My Problem is
    when I execute another search in portlet1 the results show up fine in portlet
    2, however portlet 3 still has the details from the previous search. How can
    I resolve this issue? Any advice on how to deal with caching in general?

  • Portlet to Portlet Across Pages

    Does anyone know the recommended way to do portlet to portlet interaction ACROSS
    PAGES? i've seen the 'martini' portlet but this doesnt show how one portlet can
    affect another portlet on a different page.
    I've tried connecting webflows via proxy nodes (doesn't work right, causes portlet
    B to be included in portlet A's page, which will cause errors)
    I've started to do a "forward" customization to the portal like the "redirect"
    example on dev2dev, but this doesn't work well either.
    thansk

    thanks, i appreciate the feedback. that's how i'm going to try it...
    "William Young" wyoungATsapient.com wrote:
    >
    Heya Kurt,
    We did almost the same thing you are trying to do (we had a quick search
    input
    box in our header instead of a portlet that appeared everywhere).
    We implemented it using a tag such as this:
    <portal:form event="bea.portal.framework.internal.refresh"
    namespace="search"
    pageName="SearchResultPage" name="frmBasicSearch" method="GET">
    The SearchResultsPage rendered our SearchResultsPortlet. The search
    results
    portlet's webflow had the refresh event go directly the SearchIP (which
    is a bit
    weird...but it worked). We did this in Portal 4.0.
    Will Young
    "Kurt C" <[email protected]> wrote:
    you could do this, but that doesn't require portlet to portlet communication
    at
    all. the point is that the search form should be painted on all screens
    but display
    it's results on only 1 page. The results "window" is very large, the
    search form
    is very small.
    after some thought, i think the best way to do this is by doing an actual
    page
    change and passing the search criteria with the request. It's not ideal,
    but i
    think the only option for portlet to portlet across page boundaries
    "Adnan Bukhari" <[email protected]> wrote:
    I don't know much about your design but to keep things simple if you
    design your
    search portlet such that it also shows search result the you can use
    the portlet
    on both pages. Store search result in pipeline session.
    Regards
    Adnan
    "Kurt C" <[email protected]> wrote:
    The portlet can be made to post to itself. You can then have an
    InputProcessor which can intercept the data and store it in the session.
    Then when a user clicks on the second page, on refresh the second
    portlet can retrieve the data from the session.but this doesn't accomplish the goal of sending the user from page1
    to 2, they
    are having to do it manually
    Also, I think that instead of posting to the same page, the portletcan
    be made to post to the second page after going through the input
    processor. That way you can have the user fill in the form data,then
    i've tried this with createPageChange url and with Proxy nodes (i.e.,
    IP to IP
    in another webflow , represented on another page)
    and it doesn't work
    i think maybe i can just do a regular "get" to the second page andlet
    it do the
    processing
    Jalpesh Patadia <[email protected]> wrote:
    Kurt C wrote:
    Yes, i figured that. But what if portlet A (on page 1) is submittingform data
    to portlet B (on page 2)? How does the form data get put into the
    session?
    I suppose
    you can just do a pageChangeUrl tag and pass in the parameters,
    but
    then you really
    couldnt' use any webflow , correct??The portlet can be made to post to itself. You can then have an
    InputProcessor which can intercept the data and store it in the session.
    Then when a user clicks on the second page, on refresh the second
    portlet can retrieve the data from the session.
    Also, I think that instead of posting to the same page, the portletcan
    be made to post to the second page after going through the input
    processor. That way you can have the user fill in the form data,then
    hit submit which will then activate the second page. Once the portlet
    in
    the second page is being rendered, it can retrieve the informationfrom
    the session and display appropriate information.
    Thanks,
    Jalpesh.
    Jalpesh Patadia <[email protected]> wrote:
    One way which I can think of is to put the data you want to share
    into
    the pipeline session. Then when the portlet on another page is
    accessed,
    it would fetch that data and then change it's display accordingly.
    Thanks,
    Jalpesh.
    Kurt C wrote:
    Does anyone know the recommended way to do portlet to portlet
    interaction
    ACROSS
    PAGES? i've seen the 'martini' portlet but this doesnt show how
    one
    portlet can
    affect another portlet on a different page.
    I've tried connecting webflows via proxy nodes (doesn't work right,causes portlet
    B to be included in portlet A's page, which will cause errors)
    I've started to do a "forward" customization to the portal like
    the
    "redirect"
    example on dev2dev, but this doesn't work well either.
    thansk

  • Portlet required for WLPS7.0  which is equivalent to WebPage Portlet/WebClipping portlet of Websphere Portal Server4.1

    Hi All,
    I am searching for an available portlet for WLPS 7.0 which is equivalent in functionalities
    to Webpage Portlet/Webclipping Portlet of Websphere Portal Server4.1 (IBM). On
    specifying URL this portlet should be able to get URL's screen in the portlet.
    Regards,
    Kinjal.

    Kinjal,
    Look at the uriContent tag to see if that suits your needs:
    http://edocs.bea.com/wlp/docs40/p13ndev/jsptags.htm#1058397
    PJL
    "Kinjal" <[email protected]> wrote:
    >
    Hi All,
    I am searching for an available portlet for WLPS 7.0 which is equivalent
    in functionalities
    to Webpage Portlet/Webclipping Portlet of Websphere Portal Server4.1
    (IBM). On
    specifying URL this portlet should be able to get URL's screen in the
    portlet.
    Regards,
    Kinjal.

  • Passing Page Parameters to a JSR168 Portlet - Enable Portlet Params

    We have created a JSR168 portlet in JDeveloper. Once an instance of that portlet is added to a portal page, we want the portlet instance to also received a render request parameter from the page it has been placed on.
    I know how to physically add/associate page parameters to a portlet via the portal's page properties tab. However, I am not sure how you configure the JSR168 portlet so that it has parameters that you can associated to the page parameter. Whenever I try to associate parameters to my portlet, it indicates that I have "no parameters".
    Is there a special method to configure these parameters within the portlet so that they show up on the page property's parameter tab? Do I need to create entries in the portlet.xml file to enable this? Is there a special configuration setting on the provider?
    Any help on this would be greatly appeciated.
    Thanks,
    Tony

    Hi Tony,
    As you said in your post,
    "I know how to physically add/associate page parameters to a portlet via the portal's page properties tab. However, I am not sure how you configure the JSR168 portlet so that it has parameters that you can associated to the page parameter."
    I think you first need to declare the public portlet parameters in the provider.xml of your JDeveloper project, eg.
    <inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
    <name>PortletPara_MainCat</name>
    <displayName>PortletPara_MainCat</displayName>
    <description>PortletPara_MainCat</description>
    </inputParameter>
    Then, on the page you add the portlet, you will see the declared portlet parameters in the parameter tag page. Finally, link the page parameters with portlet parameters.
    thanks
    George (HK)

  • Need an example for work flow based on multistep activity

    hi,
    i need an example for work flow based on multistep activity for practicing.please do the need.
    thanks

    Hi,
    Workflow document information:
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    &**********Reward points if helpful**************&

  • Need an example code for IMAP

    Hello friends,
    I need an example of IMAP using Javamail to retieve new mails from an INBOX .Pls send me an example if u have any .Or suggest me the site where i can get an example on it.

    Hi,
    I suggest to look at the demo files in the javamail package.
    I think msgshow.java is a good example.

  • Need some example of  'SET DATE MASK'.

    Hi Gurus,
    I need come example of 'SET DATE MASK ' & 'SET TIME MASK'.
    Thanking you.
    Subash

    Hi Subasha,
    / : SET DATE MASK = 'MMMM DD, YY'
    This displays the date as : September 26, 07.
    YY Year (2 digits)
    YYYY Year (4 Digits)
    MM Month (2 Digits)
    MMM Month Name (Abbreviated)
    MMMM Month Name (Full)
    DD Day as two digits
    DDD Day name (Abbreviated)
    DDDD Day name
    Using the SET DATE MASK causes the subsequent date fields to be displayed using the same formatting. To return to the default formatting use the following command:
    /: SET DATE MASK = ' '
    /: SET TIME MASK = 'HH hrs MM min SS sec'
    This displays the time as : 11 hrs 43 min 37 sec'
    The following are the codes that can be used in the time mask:
    HH Hours
    MM Minutes
    SS Seconds
    The time formatting can be reset to the default setting using:
    /: SET TIME MASK = ' '

  • Need JNDI example for THIN CLIENT

    I ned a JNDI example for a thin client (as opposed to a java program connecting on the same machine as the server).
    1> Specifically, I need an example of a JNDI Provider URL
    Would it be <b>corbaloc.iiop:<host>:5004   ???</b>
    2> Also, how do I create a Queue Connection factory from within the GUI (Visual Administrator), so I can find out what to use on the THIN CLIENT Program?
    Thanks

    Hi,
    Please find the answers below.
    > I ned a JNDI example for a thin client (as opposed to
    > a java program connecting on the same machine as the
    > server).
    >
    > 1> Specifically, I need an example of a JNDI Provider
    > URL
    >
    > Would it be <b>corbaloc.iiop:<host>:5004   ???</b>
    Have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/08/8f633e0084e946e10000000a114084/frameset.htm">this</a> link.
    > 2> Also, how do I create a Queue Connection factory
    > from within the GUI (Visual Administrator), so I can
    > find out what to use on the THIN CLIENT Program?
    Have a look at <a href="http://help.sap.com/saphelp_nw04/helpdata/en/26/9b569f525445b0b3d66474b7569d39/frameset.htm">this</a> link.
    > Thanks
    Hope that helps,
    Vladimir

  • I need an example of JSR179 implementation for CDC based device

    Actually i am trying to develop an LBS(Location based Service) application for Pocket PC that is a CDC based Device,
    I searched a lot on internet for any example that could help me but could't found anything usefull information.
    I found a lot of stuff for MIDP, i found JSR179 implementation for MIDP but could't found anything for CDC(Connected Device Configuration).
    So i need an example of JSR179 implementation for CDC based device. I really need it.
    waiting for your help....
    thanx
    Vivek Mishra

    What is it from a business perspective that you are trying to accomplish?
    What are you going to do with this data once you get it into the format you're envisioning?
    Are you anticipating creating a collection of REC_SET records? Is there a reason that you're not using an associative array keyed on the c2 value (assuming collections are even appropriate to the problem you're trying to solve)?
    Justin

  • Need some examples for smartforms and scripts

    hi
    now i am working in scripts and smartforms. so i need some examples and some information for scripts and smartforms. where i can find that information.

    hi jyothsna,
    i have given below a simple example
    this is the report program,
    *& Report  ZSCRIPT1                                                    *
    REPORT  ZSCRIPT1                                .
    TABLES : EKKO,
             EKPO,
             KNA1,
             USR01,
             MARA,
             MAKT.
    DATA : BEGIN OF ZOPTION.
            INCLUDE STRUCTURE ITCPO.
    DATA : END OF ZOPTION.
    PARAMETERS: P_EBELN LIKE EKKO-EBELN,
                P_EBELP LIKE EKPO-EBELP.
    CLEAR EKPO.
    SELECT SINGLE * FROM EKPO
           WHERE EBELN = P_EBELN AND
                 EBELP = P_EBELP.
    CLEAR KNA1.
    SELECT SINGLE NAME1 FROM KNA1
                  INTO KNA1-NAME1
                  WHERE KUNNR = EKPO-KUNNR.
    CLEAR MAKT.
    SELECT SINGLE MAKTX FROM MAKT
                  INTO MAKT-MAKTX
                  WHERE MATNR = EKPO-MATNR AND
                        SPRAS = SY-LANGU.
    CLEAR USR01.
    SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
    ZOPTION-TDDEST    = USR01-SPLD.        "Output device (printer)
    ZOPTION-TDIMMED   = 'X'.               "Print immediately
    ZOPTION-TDDELETE  = 'X'.               "Delete after printing
    ZOPTION-TDPROGRAM = 'ZPQRPRNT'.        "Program Name
    CALL FUNCTION 'OPEN_FORM'
         EXPORTING
             APPLICATION        = 'TX'
            ARCHIVE_INDEX      = ' '
            ARCHIVE_PARAMS     = ' '
             DEVICE             = 'PRINTER'
             DIALOG             = ' '
             FORM               = 'ZFORM1'
             LANGUAGE           = SY-LANGU
             OPTIONS            = ZOPTION
         IMPORTING
              LANGUAGE           = SY-LANGU
           EXCEPTIONS
             OTHERS     = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'HEADER'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'HEADER'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'MAIN'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'MAIN'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
             ELEMENT       = 'FOOTER'
            FUNCTION      = 'SET'
            TYPE          = 'BODY'
             WINDOW        = 'FOOTER'
         EXCEPTIONS
              ELEMENT       = 1.
    CALL FUNCTION 'CLOSE_FORM'
         EXCEPTIONS
              UNOPENED = 1
              OTHERS   = 2.
    This is the layout Set
    Layout set           Z_TESTSCRIPT
    Description          Test SAP script
    Standard attributes
      First page          FIRST
      Default paragraph   P1
      Tab-stop            1.00 CH
      Page format         DINA4
      Orientation         Landscape
      Lines/inch            6.00
      Characters/inch      10.00
    Font attributes
      Font family         COURIER
      Font size           12.0 Point
      Bold                No
      Italic              No
      Underlined          No
    Characters    Attributes
      B           Character String Bold
                  Standard attributes
                  Marker            No
                  Font attributes
                  Bold              Yes
    Paragraphs    Attributes
      P1          Default Paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Left margin       1.00 CM
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         12.0 Point
      P2          Header Paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Left margin       4.50 CM
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         18.0 Point
                  Bold              Yes
      P3          Undelined paragraph
                  Standard attributes
                  Line spacing      1.00 LN
                  Alignment         Left-aligned
                  Font attributes
                  Font family       TIMES
                  Font size         12.0 Point
                  Underlined        Yes
    Windows       Attributes
      MAIN        Main window
                  Window type       MAIN
      HEADER      Main window
                  Window type       CONSTANT
      FOOTER      Main window
                  Window type       CONSTANT
    Pages         Attributes
      FIRST       First Page
                  Standard attributes
                  Next page         FIRST
                  Page counter
                  Mode              START
                  Numbering type    Arabic numerals
                  Page window
                  HEADER               Left margin          00.00 CM
                                       Upper margin         00.00 CM
                                       Window width         20.00 CM
                                       Window height        04.00 CM
                  MAIN                 Left margin          00.00 CM
                                       Upper margin         05.00 CM
                                       Window width         20.00 CM
                                       Window height        20.00 CM
                  FOOTER               Left margin          00.00 CM
                                       Upper margin         25.00 CM
                                       Window width         20.00 CM
                                       Window height        04.00 CM
    Text elements for following windows:
    HEADER
    Element HEADER
    /: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
    /: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
    P2     ,,<B>TEST PURCHASE ORDER</>
    MAIN
    Element MAIN
    P1  <B>Customer/Supplier:</>,,&KNA1-NAME1&
    P1  <B>PO No:</>,,&EKPO-EBELN&
    P1  <B>Part No:</>,,&MAKT-MATNR&
    P1  <B>Description:</>,,&MAKT-MAKTX&
    P1  <B>Quantity:,,</>&EKPO-MENGE&
    P1  <B>Sign:</>&uline(81)&
    P1  <B>Date:</>&EKKO-AEDAT&
    FOOTER
    Element FOOTER
    /: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
    /: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
    P2     ,,<B>PLEASE SIGN THE PO BEFORE DISPATCH</>
    <b>reward if useful :)</b>

  • Communication between two portlets - Java Portlet JSR168

    Communication between two portlets
    Hi All,
    i want to be question how do communication between two portlets. Exam:
    I have 2 portlets in a portal together: a Menu portlet & a Content portlet, now i want when i click to an link of portlet Menu then my Content portlet will get param from link that.
    i'm develop by Oracle Jdeveloper tool & OracleAS 10g.
    Thank a lot !

    Hello,
    I assume you are not using Weblogic Portal, correct? If you are using Weblogic Portal, you could use events to communicate between two JSR168 portlets, but this only works in Weblogic Portal.
    If you are not using Weblogic Portal, the only way to communicate between two JSR 168 portlets is to put an attribute in the session in one portlet, and retrieve it from the session in the other portlet. For example, to set a value in your Menu portlet, given a javax.portlet.PortletRequest variable "request", and an object you want to send to the content portlet in the variable "menuChoice":
    javax.portlet.PortletSession session = request.getPortletSession(true);
    session.setAttribute("menuChoice", menuChoice, javax.portlet.PortletSession.APPLICATION_SCOPE);
    Then, in your content portlet to retrieve the value of the menuChoice variable you would do this:
    javax.portlet.PortletSession session = request.getPortletSession(true);
    Object menuChoice = session.retAttribute("menuChoice", javax.portlet.PortletSession.APPLICATION_SCOPE);
    Kevin

  • Need both Instant Portal & Discoverer Gauge Portlet

    Hi,
    Could anyone tell me which version of Oracle Application Server I need to install in order to use both Instant Portal and Discoverer Gauge Portlet? Thank you very much.

    Dominique,
    In previous versions the Discoverer provider was exposed through the following URL:
    http://<hostname>:<port>/discoverer/portletproviderFor example:
    http://myhost:7778/discoverer/portletproviderTry to access the provider test page using the above URL. If you can access it, register it with your Portal as a Web provider.
    Hope this helps,
    Peter

  • Portlet to Portlet communication

    I have two portlets, the first is a form that has several links to menu jsp pages. On clicking a link I would like the selected menu page to be displayed on the second portlet. How do I get the selected jsp to be displayed in another portlet.
    I have previously used the <cm:selectById> tag and although this loads the 'content' of the jsp into the selected portlet it does not appear to be the best way of doing this.
    Thanks
    Satinder

    Satinder,
    Good news. There is a sample on dev2dev that shows exactly how to do this. It
    is the Martini Portlet example. Go to
    http://dev2dev.bea.com
    Search for "Martini Portlet".
    PJL
    Satinder Banwait <[email protected]> wrote:
    I have two portlets, the first is a form that has several links to menu
    jsp pages. On clicking a link I would like the selected menu page to
    be displayed on the second portlet. How do I get the selected jsp to
    be displayed in another portlet.
    I have previously used the <cm:selectById> tag and although this loads
    the 'content' of the jsp into the selected portlet it does not appear
    to be the best way of doing this.
    Thanks
    Satinder

  • 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

Maybe you are looking for

  • How do I stop applications from opening at startup in Lion?

    When I log in using Lion, Mail, Entourage, and ICal open on my desktop.  I don't want this.  I already tried unchecking the restore windows box under system preferences/general; sometimes it works, and sometimes it doesn't.  The only way to stop it s

  • How to create a SEQUENCE in MSSQL2005

    Hi I am also having a similar problem which opened the thread Actually i am using a Repositery which is created in MSSQL2005. Now i want to create a SEQUENCE similar to Oracle and populate My surrogate Key Column. Can u tell me how to create a SEQUEN

  • SLD Solution Manager & connections to other SAP productes in landscape?

    Hi All I have installed Solution Manager 4.0 SR3 in order to implement global monitoring across our landscape and I have decided to install and use the SLD. I have set up the SLD and followed the post installation guide, however I now want to connect

  • Change group authorization to marketing attributes

    Hi, I need change authorization permissions to  Attribute Set. It have assigned to persons but now I need add authorization to ORGANISATION to show it in organization marketing attributes. When I enter in Transacción CRMD_PROF_TEMPL I can change all

  • Previous Page's URL in JSP/JSTL

    Dear Sirs, Could you please advice me how I could get the previous page's url( ie, the page the the user was visting before coming to the current page) in JSP/JSTL.. Thank you in advance