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}"
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>

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

Similar Messages

  • How to Implement Process Train In ADF

    I am using Jdeveloper 10.1.3.1.0
    Our requirement is to use process train in our project, so could anyone please knows this things that how to implement it please tell me.
    In Single page i am having so many tabs and each tab having one detail page and atlast it is going to submit all the details.
    Thanks In Advance
    Ramkumar
    Message was edited by:
    user636100

    Hi!
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=af_maintrain_html should give you all the information you require.
    BB

  • Error when deploying ADF application to new WebLogic Server

    Hello,
    My java-free workplace is getting into ADF development. We've purchased Fusion Applications but don't have the hardware or software yet. I am trying to get a development machine set up ASAP so I can play around with ADF and later SOA Suite.
    I have never dealt with WebLogic Server before. I have just taken some training on ADF and SOA Suite and want to play around with what I've learned quickly, as it will be a while until we get our real environment set up and I don't want to forget anything. During the training the environment was already set up for us, so everything just worked. So at this point, I'm fine having everything entirely localized to this machine for the sake of playing around.
    I've taken a brand new VM image of a 32-bit Win7 machine and installed:
    -Python
    -jDeveloper 11.1.2.3.0
    -Oracle Database Express (for the sake of having some data to play around with)
    -WLS 10.3
    -ADF for Oracle Fusion Middleware 11.1.1.7
    With WLS, I created a new domain and gave it some credentials.
    I can create a ADF application, make connections to my db tables, and build the business components I need based on them. I've created a simple jsf page with the word "test" as my default page.
    Then I go to deploy. It can find the WLS domain fine, builds the WAR, but always fails when trying to deploy it and then start it. My error, which I've googled for hours and cannot find a solution to (because of my little understanding of WLS) is:
    *Unresolved Webapp Library references for "ServletContext@29372801[app:webapp module:webapp.war path:/TorDemoApplication-DemoUI-context-root spec-version:2.5]", defined in weblogic.xml [Extension-Name: adf.oracle.domain.webapp, exact-match: false]*_
    Is there a common step I am missing?
    Thanks
    Tor

    Tor, you didn't miss a step but you used the wrong turn in the middle.
    JDev version are tidily coupled to wls versions. Read my blog http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/ to get more info on that. So the first decision to take is if you want to use SOA, BPMN and stuff like that, then use JDev 11.1.1.7.0 or if you like to use JSF2.0 and faclets withotu SOA, then use JDev 11.1.2.3.0.
    As you said you are working with SOA later on 11.1.1.7.0 is the right version for you. WebLogic server 10.3.6 with the right adf runtime installed and there should be no problem.
    Timo

  • Tutorial required to explain me login and logout scenarios in adf.

    Hi All,
                I want tutorial which explains step by step details to create login and logout pages and also store the values of user who logs in into database table. 
    Thanks in advance

    hi user,you can follow the below url it will explain the creating the login page and logout procedure..here part1 and part2 will be available in youtube
    ADF Training - Oracle ADF 11g Security - Custom ADF Login Form - Part 1 - YouTube

  • ADF from scratch

    hi,
    I am new to ADF and I want to have good understanding of OracleADF and JDeveloper. Please suggest me the links from where I can start learning them from scratch.
    Thanks

    The [url http://stegemanoracle.blogspot.com/2007/06/frequently-asked-questions-or-human.html]human Google strikes again:
    Any recommendations where get trained on ADF BC
    John

  • Simple ADF Train Application Issue, Trains  are  not  showing up on UI

    Hi
    I am new to ADF,I am Using JDeveloper 11.1.2.3.0
    I have created a bounded taskflow train-flow.xml , with train flow, and three jsff pages sequentially start.jsff,adress.jsff,payment.jsff.
    I have used a template Train-Template.jsf for those three jsff pages with the <af:trainButtonBar>.
    I dragged that train-flow.xm bounded task flow as region into the Main.jsf page
    -->when i run this Main.jsf page no trains are showing up on UI.
    Plz help me.
    train-flow.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="train-flow">
    <default-activity>start</default-activity>
    <view id="start">
    <page>/start.jsff</page>
    <train-stop/>
    </view>
    <view id="addresses">
    <page>/addresses.jsff</page>
    <train-stop/>
    </view>
    <view id="payment">
    <page>/payment.jsff</page>
    <train-stop>
    <sequential>false</sequential>
    </train-stop>
    </view>
    <train/>
    <use-page-fragments/>
    </task-flow-definition>
    </adfc-config>
    Train-Template.jsf
    <?xml version='1.0' encoding='UTF-8'?>
    <af:pageTemplateDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" definition="private"
    xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component" xmlns:f="http://java.sun.com/jsf/core">
    <af:decorativeBox id="pt_db1">
    <f:facet name="center">
    <af:facetRef facetName="body"/>
    </f:facet>
    <f:facet name="top">
    <af:trainButtonBar id="pt_tbb1"/>
    </f:facet>
    </af:decorativeBox>
    <af:xmlContent>
    <afc:component>
    <afc:display-name>Train-Template</afc:display-name>
    <afc:facet>
    <afc:facet-name>body</afc:facet-name>
    </afc:facet>
    </afc:component>
    </af:xmlContent>
    </af:pageTemplateDef>
    One page is (adress.jsff)
    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:pageTemplate viewId="/Train-Template.jsf" id="pt1">
    <f:facet name="body">
    <af:panelHeader text="panelHeader 1" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar"/>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    <af:outputText value="Adress Stop" id="ot1"/>
    </af:panelHeader>
    </f:facet>
    </af:pageTemplate>
    </ui:composition>

    Hi,
    here is your problem:
    <af:trainButtonBar id="pt_tbb1"/>
    the train bar is not linked to a train model. You need to reference #{ControllerContext.currentViewPort.taskFlowContext.trainModel} from the trainButtonBar to make it work
    Frank

  • ADF Train Application Issue, Trains  are  not  showing up on UI

    Hi
    I am new to ADF, I am Using JDeveloper 11.1.2.3.0
    I have created a bounded taskflow train-flow.xml , with train flow, and four jsff pages sequentially start.jsff,adress.jsff,payment.jsff,review.jsff and one Taskflow Call activity children_btf
    children_btf.xml contain three jsff pages.
    I have used a template Train-Template.jsf for those three jsff pages with the <af:train id="pt_t1" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"/>.
    I dragged that train-flow.xm bounded task flow as region into the Main.jsf page
    -->when i run this Main.jsf page no trains are showing up on UI.
    Plz help me.
    train-flow.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="train-flow">
    <default-activity>start</default-activity>
    <view id="start">
    <page>/start.jsff</page>
    <train-stop>
    <display-name>Start</display-name>
    </train-stop>
    </view>
    <view id="addresses">
    <page>/addresses.jsff</page>
    <train-stop>
    <display-name>Adress</display-name>
    </train-stop>
    </view>
    <task-flow-call id="children_btf">
    <task-flow-reference>
    <document>/WEB-INF/children_btf.xml</document>
    <id>children_btf</id>
    </task-flow-reference>
    <train-stop>
    <display-name>Child train</display-name>
    </train-stop>
    </task-flow-call>
    <view id="payment">
    <page>/payment.jsff</page>
    <train-stop>
    <display-name>PAYMENT</display-name>
    <sequential>false</sequential>
    </train-stop>
    </view>
    <view id="reviews">
    <page>/reviews.jsff</page>
    <train-stop>
    <display-name>Review</display-name>
    </train-stop>
    </view>
    <task-flow-return id="taskFlowReturn1">
    <outcome>
    <name>taskFlowReturn1</name>
    </outcome>
    </task-flow-return>
    <train/>
    <control-flow-rule id="__1">
    <from-activity-id>reviews</from-activity-id>
    <control-flow-case id="__2">
    <from-outcome>commit</from-outcome>
    <to-activity-id>taskFlowReturn1</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <control-flow-rule id="__3">
    <from-activity-id>children_btf</from-activity-id>
    <control-flow-case id="__4">
    <from-outcome>taskFlowReturn1</from-outcome>
    <to-activity-id>payment</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <use-page-fragments/>
    </task-flow-definition>
    </adfc-config>
    Train-Template.jsf
    <?xml version='1.0' encoding='UTF-8'?>
    <af:pageTemplateDef xmlns:af="http://xmlns.oracle.com/adf/faces/rich" var="attrs" definition="private"
    xmlns:afc="http://xmlns.oracle.com/adf/faces/rich/component" xmlns:f="http://java.sun.com/jsf/core">
    <af:decorativeBox id="pt_db1">
    <f:facet name="center">
    <af:facetRef facetName="body"/>
    </f:facet>
    <f:facet name="top">
    <af:train id="pt_t1" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"/>
    </f:facet>
    </af:decorativeBox>
    <af:xmlContent>
    <afc:component>
    <afc:display-name>Train-Template</afc:display-name>
    <afc:facet>
    <afc:facet-name>body</afc:facet-name>
    </afc:facet>
    </afc:component>
    </af:xmlContent>
    </af:pageTemplateDef>
    One Page: adresses.jsf
    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <-- <af:pageTemplate viewId="/Train-Template.jsf" id="pt1"> -->
    <f:facet name="body">
    <af:panelHeader text="panelHeader 1" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar"/>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    <af:outputText value="Adress Stop" id="ot1"/>
    </af:panelHeader>
    </f:facet>
    </af:pageTemplate>
    </ui:composition>
    children_btf.xml
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
    <task-flow-definition id="children_btf">
    <default-activity>billing</default-activity>
    <view id="billing">
    <page>/billing.jsff</page>
    <train-stop>
    <display-name>Billing</display-name>
    </train-stop>
    </view>
    <view id="shipping">
    <page>/shipping.jsff</page>
    <train-stop>
    <display-name>Shipping</display-name>
    </train-stop>
    </view>
    <task-flow-return id="taskFlowReturn1">
    <outcome>
    <name>taskFlowReturn1</name>
    </outcome>
    </task-flow-return>
    <train/>
    <control-flow-rule id="__1">
    <from-activity-id>shipping</from-activity-id>
    <control-flow-case id="__2">
    <from-outcome>don</from-outcome>
    <to-activity-id>taskFlowReturn1</to-activity-id>
    </control-flow-case>
    </control-flow-rule>
    <use-page-fragments/>
    </task-flow-definition>
    </adfc-config>

    -->sorry, i have tried many ways , i forgot to remove the comment for page template in adrress.jsf fragment, there are no more commnets in any .jsff pages still its not working
    this is the my main page, using task flow as region.
    Main.jsf
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled1.jsf" id="d1">
    <af:form id="f1">
    <af:panelStretchLayout topHeight="50px" startWidth="100px" id="psl1">
    <f:facet name="top">
    <af:panelAccordion id="pa1">
    <af:showDetailItem text="Browse" id="sdi1" disclosed="true"/>
    <af:showDetailItem text="Search" id="sdi2"/>
    </af:panelAccordion>
    </f:facet>
    <f:facet name="center">
    <!-- id="af_twocol_left_full_header_Stretched" -->
    <af:panelStretchLayout startWidth="100px" id="psl2">
    <f:facet name="center">
    <af:region value="#{bindings.trainflow2.regionModel}" id="r1"/>
    </f:facet>
    <f:facet name="start"/>
    </af:panelStretchLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    Edited by: Rajashekar Thippireddy on May 16, 2013 9:30 AM

  • Queries related to ADF Train Component, Region disable if 'No data Found' from URL service

    I have below few queries. I am using JDeveloper version : 11.1.1.6.0
    1. Train Component : I need to remove link which is on 'Train Stop' icon so user can't directly go to next stop.
    2. Hide region in case of Empty Result from URL Service Call :
         I have created a region  and in region put the task flow which have readOnly table calling URL Service data control.
         In case of empty result from service call, table is rendered and displays 'No data to display.' I don't want to show empty table in this case. and I also want to make region invisible (rendered=false).
    3. alternative of <optgroup> tag in adf: Do we have any alternative option to display <optgroup> tag in adf ?
    Regards,
    Niraj

    1. Train Component : I need to remove link which is on 'Train Stop' icon so user can't directly go to next stop.
    You can reference a managed bean from the view activity train definition to enable/disable stops dynamically:
    http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    ADF Code corner has more train examples, just search for "train" : http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
    2. Hide region in case of Empty Result from URL Service Call :
         I have created a region  and in region put the task flow which have readOnly table calling URL Service data control.
         In case of empty result from service call, table is rendered and displays 'No data to display.' I don't want to show empty table in this case. and I also want to make region invisible (rendered=false).
    The af:region is out of scope for the table. Instead use a dynamic regions that you switch to from a managed bean (see the product documentation about dynamic regions) and then you switch to an empty region when there is no values to display. Another option would be to hide the table instead of the region using its display property. Let me know which approach you go with and if you need additional information
    3. alternative of <optgroup> tag in adf: Do we have any alternative option to display <optgroup> tag in adf ?
    an af:switcher would do the same
    Frank

  • Navigating ADF Train to a specific stop on page load

    Hello friends,
    I am working on the GUI of an ADF web application, which requires the use of train component. It is possible to navigate the train component to a specific stop programmatically once the page containing the train component is loaded but as per our business scenario, I need to navigate the train to a specific stop (say 3rd stop for example) while loading the page.
    Is it possible to do so?
    I am using JDeveloper 11.1.1.7.0.
    Best Regards,
    Anshul

    Thanks Shri.
    That worked.
    Regards,
    Anshul

  • ADF train task Flow display name comonent value from bundel

    hi
    i have som problem with adf bounded task flow train.
    i build a bounded task flow as fragment and train and i add display name component to each view , but how i can give the display name value from a view controller bundel .
    regards mohammad.j.yaseen

    1). Select the component for which you want to set the attribute to a bundle
    2). In the property inspector, click the context menu next to the attribute you want to pick from a bundle (the thing that looks like a "V" next to the field"
    3). Choose "Select Text Resource..." from the resulting menu

  • ADF : Can we skip the default activity of ADF train in bounded task flow.?

    Hi All,
    I'm a newbie for ADF and JDev. Started learning from the documentation provided for ADF, I'm trying to create a bounded task flow which has a train component and every train stop should be enabled/skipped programmatically. I'm able to skip the train stops after reading the content provided at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf.
    But I'm not able to skip the default train stop which is the first activity call in my case upon initialization.
    Below are the steps I've followed :
    1. Created a viewController project and created a bounded task flow in it with Train component enabled.
    2. Added 4 views with train component marking the first view as default activity call.
    3. As per the document I mentioned above, I added managed bean files to skip the train stop programmatically.
    Now when i run the task flow, I'm able to skip the train stops number 2/3/4 but I'm not able to skip the stop number 1(first stop which is the default activity) on initialization.
    As per ADF documentation, for a bounded task flow there must be a default activity assigned which will always be called first when we enter the bounded task flow. So that means, default activity will always be called upon initialization of that bounded task flow and never be skipped programmatically.? or else if there is a way to skip the default activity, then please let me know the documentation/steps to do this.
    Thanks in advace.
    Edited by: 1004973 on May 9, 2013 2:52 AM

    Thanks Timo. Your idea resolved my issue. :)
    I've created a new page in my bounded task flow which I've made as a default activity for that bounded task flow. Then I applied navigation through router and based on some condition I'm now able to move my control to my desired train stop. By this design I can do other customization on train button(Back/Next).

  • Jdeveloper 10g with Adf training

    Dear all,
    I need to know anybody is interested to provide me
    jdeveloper 10g with Adf training in chennai during feb 2006.
    Dont suggest oracle corpration it is too costly for me.
    please send me the list of computer education institutes/indiviguals in chenai
    thanks and regards
    selva

    Dear all,
    I need to know anybody is interested to provide me
    jdeveloper 10g with Adf training in chennai during feb 2006.
    Dont suggest oracle corpration it is too costly for me.
    please send me the list of computer education institutes/indiviguals in chenai
    thanks and regards
    selva

  • ADF-FACES-EA16: internal server error after migrating process train

    java.lang.NoSuchMethodError: void oracle.adfinternal.view.faces.taglib.core.nav.CoreProcessTrainTag.setVar(java.lang.String)
         at newContract2e_jspx._jspService(newContract.jspx:26)
         [newContract.jspx]
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)
    here is the part related to process train
    <f:facet name="location">
    <af:processTrain binding="#{backing_newContract.processTrain1}"
    value="#{newContractPageFlowModel}"
    var="newContractNode">
    <f:facet name="nodeStamp">
    <af:commandMenuItem binding="#{backing_newContract.commandMenuItem1}"
    text="#{newContractNode.label}"
    action="#{newContractNode.outcome}"/>
    </f:facet>
    </af:processTrain>
    </f:facet>
    <f:facet name="actions">
    <af:processChoiceBar binding="#{backing_newContract.processChoiceBar1}"
    value="#{newContractPageFlowModel}"
    var="newContractNode">
    <f:facet name="nodeStamp">
    <af:commandMenuItem binding="#{backing_newContract.commandMenuItem2}"
    text="#{newContractNode.label}"
    action="#{newContractNode.outcome}"/>
    </f:facet>
    </af:processChoiceBar>
    </f:facet>

    Hi Steven,
    Just to let you know, I was able to reproduce this very easily with a simple JHeadstart project.
    - Create ADF Fusion Web app
    - Create connection to HR
    - Add VO, EO, APpModule for Departments table
    - Change AM configuration to use DataSource
    - Enable JHeadstart on ViewController
    - Create new JHeadstart service definition
    - Set JHeadstart custom authentication to Custom
    - Set JHeadstart custom authorisation to Custom
    - Secure all pages
    - Set session timeout in web.xml to 5 minutes
    - Deploy to local weblogic
    - Log on to application then logoff
    - Wait longer than 5 minutes then log back on
    - Redirect message shown which takes you back to login page
    - Login and you will get 500 server error
    This is with zero custom coding - only steps those shown above. Can you please confirm that you can replicate this ?
    Cheers,
    Brent

  • Free JDeveloper and ADF Training Days announced for 2010

    Oracle have just published new 2010 dates for JDeveloper/ADF Fusion development training in US, Canada, UK and mainland Europe. Details available here :

    It all goes on demand - feel free to post on this thread and I can bring it to the attention of the people who run these events.
    Gramt

  • Can we customize ADF Train flow to remove a Train stop on some condition?

    Hi,
      Can we customize ADF Train Flow using customization frame work and remove one train stop using some condition?
    Thanks
    Abhilash

    Read Frank's article http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    Timo

Maybe you are looking for

  • How do I re-install Acrobat after hard drive has been replaced?

    I purchased and installed Acrobat XI in June. Shortly after this the hard drive on my laptop needed to be replaced and I now need to reinstall. Can I do this using the original code, as if installing a new product, or do I need to do something differ

  • Wet iPhone Question and Applecare Issue

    Hello! Sorry to post another topic about a wet iPhone, but I have a specific question. Yesterday while fishing, I bent over to get something and my iPhone fell out of my pocket into the lake. I grabbed it out right away. It spent the night in a back

  • Using checkboxes with JOption Pane

    Hi, I having abit of trouble trying to implement a search utility into my swing based program. What I want is something also the lines of the "Find" feature available in MS Word and IE. Hence I want a message, input dialog box but also a checkbox to

  • Access Point - 1262

    1. Can the C1200 antennas work on the 1262 ? 2. Can the 2.4Ghz antenna work on the 5Ghz ports on the 1262 ? 3. The 1262 has 6 antenna ports (3 2.4ghz and 3 5ghz), can the (3) 2.4 Ghz antenna be used only as i only have antennas for the C1200 Access p

  • Known Issues for Windows 10 SDK and Tools

    Please read about Known Issues for Windows 10 developers in the Known Issues for Windows 10 SDK and Tools forum