Forum Stats

  • 3,851,962 Users
  • 2,264,054 Discussions
  • 7,904,917 Comments

Discussions

Problem in pass parameter to ADF taskflow Portlet Bridge in oracle webcenter

Hi,

I use JDeveloper 12.2.1.3 to convet an ADF TaskFlow to portlet by portlet bridge mechanism. My task flow has a parameter that has been shown in it's page. when I deploy it as portlet producer and test it in http://eisdev.msc.com/PortletComponentApp-PortletViewController-context-root/info , every thing is OK and the parameter has been passed in the page. But when I register it on oracle webcenter as a portlet producer after adding portlet and setting parameter, I don't see any thing in my page and parameter is blank.

I followed Doc ID 2289112.1   instruction but nothing changed.

below is my code :

Task Flow source code :

<?xml version="1.0" encoding="windows-1252" ?>

<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">

  <task-flow-definition id="task-flow-Portlet2">

    <default-activity>page1</default-activity>

    <data-control-scope>

      <shared/>

    </data-control-scope>

    <input-parameter-definition id="__1">

      <name>FirstParam</name>

      <value>#{pageFlowScope.FirstParam}</value>

      <class>java.lang.String</class>

    </input-parameter-definition>

    <managed-bean id="__3">

      <managed-bean-name>TempManageBean</managed-bean-name>

      <managed-bean-class>com.view.TempManageBean</managed-bean-class>

      <managed-bean-scope>pageFlow</managed-bean-scope>

    </managed-bean>

    <managed-bean id="__2">

      <managed-bean-name>SessionClassBean</managed-bean-name>

      <managed-bean-class>com.view.SessionClass</managed-bean-class>

      <managed-bean-scope>session</managed-bean-scope>

    </managed-bean>

    <view id="page1">

      <page>/page1.jsf</page>

      <input-page-parameter id="__4">

        <from-value>#{pageFlowScope.FirstParam}</from-value>

        <to-value>#{pageFlowScope.TempManageBean.localParam}</to-value>

      </input-page-parameter>

      <input-page-parameter id="__5">

        <from-value>#{pageFlowScope.FirstParam}</from-value>

        <to-value>#{SessionClassBean.localParam}</to-value>

      </input-page-parameter>

    </view>

  </task-flow-definition>

</adfc-config>

page1.jsf source code :

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

<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">

  <af:document id="d1" title="test">

    <af:form id="f1">

      <af:button text="button 1" id="b1"/>

    </af:form>

    <af:outputText value="#{pageFlowScope.FirstParam}" id="ot1"/>

    <af:outputText value="#{pageFlowScope.TempManageBean.localParam}" id="ot2"/>

    <af:outputText value=#{SessionClassBean.localParam}" id="ot3"/>

  </af:document>

</f:view>

and portlet.xml source code :

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

<ns0:portlet-app xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:ns0="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">

   <ns0:portlet id="adf_taskflow_WEB_INF_task_flow_Portlet2_xml">

      <ns0:description>PortletComponentApp task-flow-Portlet2</ns0:description>

      <ns0:portlet-name>PortletComponentApp_task-flow-Portlet2</ns0:portlet-name>

      <ns0:display-name>PortletComponentApp task-flow-Portlet2</ns0:display-name>

      <ns0:portlet-class>oracle.portlet.bridge.adf.application.ADFBridgePortlet</ns0:portlet-class>

      <ns0:init-param>

         <ns0:name>javax.portlet.faces.defaultViewId.view</ns0:name>

         <ns0:value>/adf.task-flow?adf.tfDoc=/WEB-INF/task-flow-Portlet2.xml&amp;adf.tfId=task-flow-Portlet2</ns0:value>

      </ns0:init-param>

      <ns0:init-param>

         <ns0:name>oracle.portlet.bridge.adf.SetViewToConsumerLocale</ns0:name>

         <ns0:value>true</ns0:value>

      </ns0:init-param>

      <ns0:supports>

         <ns0:mime-type>text/html</ns0:mime-type>

         <ns0:portlet-mode>VIEW</ns0:portlet-mode>

      </ns0:supports>

      <ns0:supported-locale>en</ns0:supported-locale>

      <ns0:portlet-info>

         <ns0:title>PortletComponentApp task-flow-Portlet2</ns0:title>

         <ns0:short-title>PortletComponentApp task-flow-Portlet2</ns0:short-title>

      </ns0:portlet-info>

      <ns0:supported-public-render-parameter>FirstParam</ns0:supported-public-render-parameter>

      <ns0:container-runtime-option>

         <ns0:name>com.oracle.portlet.requireIFrame</ns0:name>

         <ns0:value>true</ns0:value>

      </ns0:container-runtime-option>

      <ns0:container-runtime-option>

         <ns0:name>com.oracle.portlet.minimumWsrpVersion</ns0:name>

         <ns0:value>2</ns0:value>

      </ns0:container-runtime-option>

   </ns0:portlet>

   <ns0:custom-portlet-mode>

      <ns0:portlet-mode>about</ns0:portlet-mode>

   </ns0:custom-portlet-mode>

   <ns0:custom-portlet-mode>

      <ns0:portlet-mode>config</ns0:portlet-mode>

   </ns0:custom-portlet-mode>

   <ns0:custom-portlet-mode>

      <ns0:portlet-mode>edit_defaults</ns0:portlet-mode>

   </ns0:custom-portlet-mode>

   <ns0:custom-portlet-mode>

      <ns0:portlet-mode>preview</ns0:portlet-mode>

   </ns0:custom-portlet-mode>

   <ns0:custom-portlet-mode>

      <ns0:portlet-mode>print</ns0:portlet-mode>

   </ns0:custom-portlet-mode>

   <ns0:public-render-parameter>

      <ns0:identifier>FirstParam</ns0:identifier>

      <ns0:qname xmlns:ns2="http://xmlns.oracle.com/adfm/contextualEvent">ns2:FirstParam</ns0:qname>

   </ns0:public-render-parameter>

</ns0:portlet-app>

Any help is appreciated