9 Replies Latest reply: Apr 13, 2013 8:22 AM by Kartick RSS

    train in adf

    veenapandit
      I created a bounded task flow with a train and page fragments. I get this error in the log

      <TrainRenderer> <encodeAll> Either a MenuModel object was not provided or an invalid object was provided.


      <af:train var="node" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}">
      <f:facet name="nodeStamp">
      <af:commandNavigationItem text="#{node.label}"
      actionListener="#{node.doActionListener}"
      immediate="#{controllerContext.currentViewPort.taskFlowContext.trainModel.immediate}"
      disabled="#{controllerContext.currentViewPort.taskFlowContext.trainModel.readOnly}"
      visited="#{controllerContext.currentViewPort.taskFlowContext.trainModel.visited}"
      id="commandNavigationItem"/>
      </f:facet>
      </af:train>
        • 2. Re: train in adf
          veenapandit
          You don't think I googled it. I have no idea what he is talking about
          • 3. Re: train in adf
            Sudipto Desmukh
            You should have mentioned what you tried for us to help you ...
            How are you running the train - running the taskflow or a particular page ?
            • 4. Re: train in adf
              veenapandit
              I have created a bounded task flow with page fragments. Inserted a train bar in the first train page.

              Thanks
              • 5. Re: train in adf
                Frank Nimphius-Oracle
                Hi,

                did you enable "trains" on the bounded task flow (see property palette). Once you done this, make sure the view you added is flagged as a train stop (property palette. This entry shows only if the bounded task flow is enabled as a train model)

                Frank
                • 6. Re: train in adf
                  user404
                  Take a look at this:
                  http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_44/jdtut_11r2_44.html
                  I used it before and it works like a charm + it's explained very well.
                  • 7. Re: train in adf
                    veenapandit
                    Hi Frank,

                    Thanks for your response. this is what i have:

                    <?xml version="1.0" encoding="windows-1252" ?>
                    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
                    <task-flow-definition id="trainModel-task-flow-definition">
                    <default-activity>facilitiesInformation</default-activity>
                    <view id="facilitiesInformation">
                    <page>/facilitiesInformation.jsff</page>
                    <train-stop>
                    <display-name>Facility Information</display-name>
                    </train-stop>
                    </view>
                    <view id="iSatServicesTab">
                    <page>/iSatServicesTab.jsff</page>
                    <train-stop>
                    <display-name></display-name>
                    </train-stop>
                    </view>
                    <view id="directorTab">
                    <page>/directorTab.jsff</page>
                    <train-stop>
                    <display-name></display-name>
                    </train-stop>
                    </view>
                    <view id="emailTab">
                    <page>/emailTab.jsff</page>
                    <train-stop>
                    <display-name></display-name>
                    </train-stop>
                    </view>
                    <task-flow-return id="taskFlowReturn1">
                    <display-name>Return</display-name>
                    <outcome>
                    <name>taskFlowReturn1</name>
                    </outcome>
                    </task-flow-return>
                    <train/>
                    <control-flow-rule id="__1">
                    <from-activity-id>emailTab</from-activity-id>
                    <control-flow-case id="__2">
                    <from-outcome>Return</from-outcome>
                    <to-activity-id>taskFlowReturn1</to-activity-id>
                    </control-flow-case>
                    </control-flow-rule>
                    <use-page-fragments/>
                    </task-flow-definition>
                    </adfc-config>


                    what do i need to do in addition to this?

                    veena
                    • 8. Re: train in adf
                      veenapandit
                      O : [2012-12-15 09:50:51,628] FacilitiesBean ? Exiting FacilitiesBean:selectRowEditCurrent().....
                      <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
                      oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
                           at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:185)
                           at oracle.adf.model.binding.DCBindingContainerReference.createExecutableBinding(DCBindingContainerReference.java:233)
                           at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:631)
                           

                      I get this error now.

                      I have

                      the following in the pages


                      In the page with all the fragments:
                      <af:navigationPane hint="tabs" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
                      var="trainNode" id="np1">
                      <f:facet name="nodeStamp">
                      <af:commandNavigationItem text="#{trainNode.textAndAccessKey}" id="cni1"
                      viewId="#{trainNode.visited}" disabled="#{trainNode.disabled}"
                      action="#{trainNode.action}"/>

                      </f:facet>
                      </af:navigationPane>
                      • 9. Re: train in adf
                        Kartick
                        I think you have used <af:train> component in the jspx or jsf page and hence the problem. Remove the <af:train> from the jsf or jspx and use it in the page fragments of the train task flow or use a common page template. It will work.