9 Replies Latest reply on Apr 13, 2013 1:22 PM by Kartick

    train in adf

      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}"
        • 2. Re: train in adf
          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
              I have created a bounded task flow with page fragments. Inserted a train bar in the first train page.

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

                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)

                • 6. Re: train in adf
                  Take a look at this:
                  I used it before and it works like a charm + it's explained very well.
                  • 7. Re: train in adf
                    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">
                    <view id="facilitiesInformation">
                    <display-name>Facility Information</display-name>
                    <view id="iSatServicesTab">
                    <view id="directorTab">
                    <view id="emailTab">
                    <task-flow-return id="taskFlowReturn1">
                    <control-flow-rule id="__1">
                    <control-flow-case id="__2">

                    what do i need to do in addition to this?

                    • 8. Re: train in adf
                      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}"

                      • 9. Re: train in adf
                        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.