This discussion is archived
4 Replies Latest reply: May 23, 2013 10:06 PM by Bijesh Krishnadas RSS

adf portlet input parameter

1004449 Newbie
Currently Being Moderated
Hi ,

I have made a taskflow portlet. I have added one parameter in the portlet and added that in the my portlet.
I want to assign that parametner to my input parameter of the task flow. How I can access it, What would be the EL for the same.
Below is my soap resquest and "selectPage" is my parameter.

thanks in advance

<?xml version = '1.0' encoding = 'UTF-8'?>

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

<env:Header/>

<env:Body>

<ns0:getMarkup xmlns:ns0="urn:oasis:names:tc:wsrp:v2:types">

<ns0:registrationContext>

<ns0:registrationState>rO0ABXcsRa0S7gAmQzphMTkwNDE1MC03MzQwLTQ1MjQtOGY2MC03MzM1M2FjYmE2ZWFzcgARamF2YS51dGlsLkhhc2hNYXAFB9rBwxZg0QMAAkYACmxvYWRGYWN0b3JJAAl0aHJlc2hvbGR4cD9AAAAAAAAMdwgAAAAQAAAAAHh3LgALUDNBLUZQSjk2UTEAHk9yYWNsZVBvcnRsZXRDbGllbnQuMTEuMS4xLjYuMABzcgAlamF2YS51dGlsLkNvbGxlY3Rpb25zJFVubW9kaWZpYWJsZVNldIAdktGPm4BVAgAAeHIALGphdmEudXRpbC5Db2xsZWN0aW9ucyRVbm1vZGlmaWFibGVDb2xsZWN0aW9uGUIAgMte9x4CAAFMAAFjdAAWTGphdmEvdXRpbC9Db2xsZWN0aW9uO3hwc3IAEWphdmEudXRpbC5IYXNoU2V0ukSFlZa4tzQDAAB4cHcMAAAACD9AAAAAAAAGdAAgamF2YXg6cG9ydGxldDptb2RlOmVkaXRfZGVmYXVsdHN0AAx3c3JwOnByZXZpZXd0ACt1cm46amF2YXg6cG9ydGxldDptb2RlOmN1c3RvbTplZGl0X2RlZmF1bHRzdAAJd3NycDp2aWV3dAAJd3NycDpoZWxwdAAJd3NycDplZGl0eHNxAH4AAnNxAH4ABncMAAAACD9AAAAAAAAEdAALd3NycDpub3JtYWx0AA53c3JwOm1pbmltaXplZHQACXdzcnA6c29sb3QADndzcnA6bWF4aW1pemVkeHNxAH4AAnNxAH4ABncMAAAAAT9AAAAAAAAAeHA=</ns0:registrationState>

<ns0:registrationHandle>C:a1904150-7340-4524-8f60-73353acba6ea</ns0:registrationHandle>

</ns0:registrationContext>

<ns0:portletContext>

<ns0:portletHandle>P:d7af4ec0-7b07-4f2e-a723-174accf33d5a</ns0:portletHandle>

<ns0:portletState>rO0ABXenRa0S/wAmUDpkN2FmNGVjMC03YjA3LTRmMmUtYTcyMy0xNzRhY2NmMzNkNWEAJ0FERlBvcnRhbFNlcnZpY2VBcHBsaWNhdGlvbl9SdW5uaW5nRmxvdwAnQURGUG9ydGFsU2VydmljZUFwcGxpY2F0aW9uX1J1bm5pbmdGbG93AQAmQzphMTkwNDE1MC03MzQwLTQ1MjQtOGY2MC03MzM1M2FjYmE2ZWFzcgARamF2YS51dGlsLkhhc2hTZXS6RIWVlri3NAMAAHhwdwwAAAAQP0AAAAAAAAB4c3IAEWphdmEudXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2FkRmFjdG9ySQAJdGhyZXNob2xkeHA/QAAAAAAADHcIAAAAEAAAAAB4</ns0:portletState>

</ns0:portletContext>

<ns0:runtimeContext>

<ns0:userAuthentication>wsrp:password</ns0:userAuthentication>

<ns0:portletInstanceKey>1738434528_1270267481</ns0:portletInstanceKey>

<ns0:namespacePrefix>__ns1738434528_</ns0:namespacePrefix>

<ns0:sessionParams/>

</ns0:runtimeContext>

<ns0:userContext>

<ns0:userContextKey>weblogic</ns0:userContextKey>

<ns0:profile/>

</ns0:userContext>

<ns0:markupParams>

<ns0:secureClientCommunication>false</ns0:secureClientCommunication>

<ns0:locales>en</ns0:locales>

<ns0:mimeTypes>text/html</ns0:mimeTypes>

<ns0:mimeTypes>text/xml</ns0:mimeTypes>

<ns0:mimeTypes>text/vnd.oracle.mobilexml</ns0:mimeTypes>

<ns0:mimeTypes>*</ns0:mimeTypes>

<ns0:mode>wsrp:view</ns0:mode>

<ns0:windowState>wsrp:normal</ns0:windowState>

<ns0:clientData>

<ns0:userAgent>Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0</ns0:userAgent>

<ns0:clientAttributes name="Host">

<ns0:value>localhost:7101</ns0:value>

</ns0:clientAttributes>

<ns0:clientAttributes name="Referer">

<ns0:value>http://localhost:7101/FuturePrefectApps/faces/oracle/webcenter/portalapp/pages/services/ServiceRequest.jspx</ns0:value>

</ns0:clientAttributes>

<ns0:clientAttributes name="Accept-Encoding">

<ns0:value>gzip, deflate</ns0:value>

</ns0:clientAttributes>

<ns0:clientAttributes name="Connection">

<ns0:value>keep-alive</ns0:value>

</ns0:clientAttributes>

<ns0:extensions>

<ns1:GenericExtension xmlns:ns1="http://xmlns.oracle.com/portal/wsrp/v2">

<ns1:NamedString name="ORG.APACHE.MYFACES.TRINIDAD.SKIN.ID">

<ns1:value>portal.desktop</ns1:value>

</ns1:NamedString>

<ns1:NamedString name="oracle.portlet.request.context.string.currentPageName">

<ns1:value>ServiceRequest.jspx</ns1:value>

</ns1:NamedString>

<ns1:NamedString name="oracle.portlet.request.context.string.currentPagePath">

<ns1:value>/oracle/webcenter/portalapp/pages/services/ServiceRequest.jspx</ns1:value>

</ns1:NamedString>

<ns1:NamedString name="ORG.APACHE.MYFACES.TRINIDAD.SKIN.STYLESHEET.ID">

<ns1:value>p3hck1</ns1:value>

</ns1:NamedString>

<ns1:NamedString name="ORG.APACHE.MYFACES.TRINIDAD.SKIN.STYLESHEET.URL">

<ns1:value><link rel="stylesheet" charset="UTF-8" type="text/css" href="/FuturePrefectApps/adf/styles/cache/portal-desktop-p3hck1-en-ltr-gecko-cmp.css"></ns1:value>

</ns1:NamedString>

</ns1:GenericExtension>

</ns0:extensions>

</ns0:clientData>

<ns0:navigationalContext>

<ns0:publicValues name="selectPage">

<ns0:value>"walking kool"</ns0:value>

</ns0:publicValues>

</ns0:navigationalContext>

<ns0:markupCharacterSets>UTF-8</ns0:markupCharacterSets>

<ns0:validNewModes>wsrp:view</ns0:validNewModes>

<ns0:validNewModes>wsrp:view</ns0:validNewModes>

<ns0:validNewModes>wsrp:edit</ns0:validNewModes>

<ns0:validNewModes>wsrp:help</ns0:validNewModes>

<ns0:validNewModes>wsrp:view</ns0:validNewModes>

<ns0:validNewModes>wsrp:view</ns0:validNewModes>

<ns0:validNewModes>wsrp:view</ns0:validNewModes>

<ns0:validNewWindowStates>wsrp:normal</ns0:validNewWindowStates>

<ns0:validNewWindowStates>wsrp:maximized</ns0:validNewWindowStates>

<ns0:validNewWindowStates>wsrp:minimized</ns0:validNewWindowStates>

</ns0:markupParams>

</ns0:getMarkup>

</env:Body>

</env:Envelope>
  • 1. Re: adf portlet input parameter
    Daniel Merchán Expert
    Currently Being Moderated
    Hi.

    Try to difference between Task Flows and Portlets, sometimes is so confuse know if talking about portlet or task flow ;).

    As I understand you build a Bounded Task Flow that you are exposing as a Portlet instead of using directly as region. Right?.

    When adding your portlet to a page you can configure "Input Parameters" following one of the next ways:
    1) If you are in Design Time (WebCenter Portal Framework). When add your Portlet to a page JDeveloper will ask you automatically for input parameters. Those parameters are stored in the pageDefinition associated to this page (in portlet binding).
    2) If you are in Runtime and add your portlet through Resource Catalog or have a pre-added portlet added to your page then you can configure your portlet parameters through Oracle Composer.

    I hope this help you.

    Regards.
  • 2. Re: adf portlet input parameter
    1004449 Newbie
    Currently Being Moderated
    Hi ,

    Thanks for the response. That part I have done. I have pasted soap request as well.

    <ns0:navigationalContext>

    <ns0:publicValues name="selectPage">

    <ns0:value>"walking kool"</ns0:value>

    </ns0:publicValues>

    </ns0:navigationalContext>

    as u can see "selectPage" is my parameter. I want to access this in the portlet.

    Since its a portlet with task flow I need to assign it to one of the inputparameter of the taskflow. I want to know the EL to set the value of the parameter.

    thanks in advance

    :)
  • 3. Re: adf portlet input parameter
    1004449 Newbie
    Currently Being Moderated
    I have tried requestScope.selectpage but this did not return the value.
  • 4. Re: adf portlet input parameter
    Bijesh Krishnadas Journeyer
    Currently Being Moderated
    Does this help - http://docs.oracle.com/cd/E12483_01/webcenter.1013/b31074/jpsdg_java_adv.htm#BABBFDHA? Section 19.5.1.1 Passing Parameters

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points