Train Component

Hi.
I am using Jdeveloper 11.1.1.5.0. , i'm new to ADF and Also OTN
This is my Scenario,
I am using a table ,the table Contains the Different kind of records in different Status(Eg: New, Active,Cancel).
Also I am having a train on top of the table, which shows, New  --> Active  -->Cancel
When i click the Particular Record Based on the Status the Train Will be highlight, For eg: If I click the 'Cancel' status record, the previous status of records such as 'New' and 'Active' will be disabled and the 'Cancel' station should be highlighted.
I tried the following methods,
1.I created  a  separate View object based on the Status like(New ,Active,Cancel)
2. I shown my table in jsff page.
3..In Jsff Page, drag the Train Component From the Component Palette, and drop into  top of the Table.
4.Finaly Created a jspx page with the TaskFlow in it.
5. I run it,  It works Fine
but i have to show as,
Single Af:table contains Different Status Records,When i click a particular Row Based on the Status the Train Station Will be Enabled.
How  to Achieve this?
pls give Some ideas.

Stop posting the sqame question again and again. Continue here: Train Component and Answer the questions.
Mod: locking

Similar Messages

  • 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

  • How to use Train Component only with Task-flows as Train Stops

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I have below requirement:
    In a Page when user clicks the button, display the Popup with Train Component. I have to use bounded task flow for each Train Stop. I don't have any views to be used as Train Stops. (Most of the Train Samples have Views / JSFF Fragments as Train Stops and child task flows as Train stops)
    Please let me know if I can achieve this.
    Any pointers would be helpful.
    Thanks
    Ravi

    Hi,
    train stops must be displayed on a view. So if you have a task flow that navigates to other taskflows then it needs to have at least a single view to display the train stops. If you attempt to show. If you enter a task flow then this task flow will have its own train model. So maybe its better to look at what your use case is and why you need to quite called task flows without properly exiting them
    Frank

  • Regarding Train component, view is lost when navigating to next train stop

    Hi,
    I require a train component for my application. I have created a bounded taskFlow contianing 3 JSF pages with each page representing a trainStop.
    I added train component to each of the pages as told in "Fusion Developer Guide" .
    Now I add this taskFlowDefn.xml in my main.jspx as a region. The train is visible and working but the problem that I face is as follows:-
    I am having 2 input fields in my 1st jsf page represented by the 1st stop in the train. If I enter something in the input text
    and move on to another stop(which is also a different jsf page) and again go back to previous jsf page, the value in the input text gets cleared from the screen.
    These input text are not bounded with View Object attributes. The JSFFs are desgined without binding.
    How can I save/retain the view of the previous page , I mean how to retain the values on the page that were entered, as train component itself provides the
    functionality of moving back and forth. Alll the 3 jsf pages and the main.jspx (which contains the bounded taskFlowDefinition as region) have backingBeanScope.
    Please reply if you know wat I have missed or wat I need to do for this.
    Thx in advacne
    Tarun.

    adf009, please read the post I posted the link to in my previous replay. The old code format tag don't work in the new forum!
    Still the same error. The stack trace still points to it, you only need to read it carefulle
    javax.faces.el.EvaluationException: java.lang.NullPointerException
        at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
    Caused by: java.lang.NullPointerException
        OrgDetails.showSelectedOrg(OrgDetails.java:2456)
    The origin is
    method.execute();
    and the real reason is
    MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51);
    What does it tell you?
    Timo

  • Dynamic Regions w/Train Component

    I'm working on a web app (JDeveloper 11g) where one page has a dynamic reqion with a task flow associated with it that sets the fragment for the view. Most of the fragments for this region use a page template with a train component. Navigation using the train component mostly works fine- the fragment is replaced by a new fragment each time a train link is clicked.
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment. I get a similar error if I set the scope of the bean to session or pageFlow. Only when I set the scope to backingBean or None do I avoid the error message.
    But then another problem occurs. One of the fragments in the flow for the inner region has a panelAccordion with several showDetailItems consisting of selectManyCheckboxes. The panelAccordion doesn't list anything, and locks up if I try to open or close any showDetailItem. This behavior is similar to when the scope for the bean managing the flow is not set to viewScope or higher.
    In stepping through the code, I noticed that the outer region's flow code runs after the inner region's trigger event code that sets the inner region's taskFlowId, but before the inner region's flow code, so the inner region's taskFlowId setting is lost. I tried throwing the setting into session context and retrieving it, and that almost works. If I actually select any of the selectManyCheckboxes, they are lost once I move to a different fragment in the inner region.
    Does anybody have any ideas on how to I get this page working, alternatives to the approach I'm taking, settings I should check, and/or any reference material I could consult?
    Thanks in advance!
    Edited by: tmurphy on Jul 6, 2010 3:30 PM

    Hi,
    However, one fragment contains another dynamic region. I tried to set the scope of the bean managing this region to viewScope, but I get a popup message in the browser "viewScope.myManagedClass.dynamicTaskFlowId" is invalid" when I click the train component link for the fragment.
    Is the managed bean defined in the metadata definition of the bounded taskflow that you load ? Note that bounded task flows are only initializing their managed beans when they are loaded. If you define the managed bean in the parent bounded task flow then the viewScope also is the one of the parent flow. Appears as if this is the problem you describe
    Frank

  • How to launch the dialog with a wizard having train component

    Hi
    I have a page with a button and onclicking the button i need to show a dialog wizard( a wizard with 3 pages with the train component to move back and forth)
    I have created a taskflow as a train with 3 pages, but onclicking the button i am not able to launch the dialog as a taskflow.
    Any documentatino on how to achieve the same or some sample application reference is highly appreciated
    Bittu Bansal

    On clicking the button i want to show a popup and that popup drives me through the wizard.
    However i am able to achive the same right now.
    I am calling a popup using showPopupBehaviour and that popup i have created the region where i have embedded the task flow for a train wizard.
    Thanks
    Bittu Bansal

  • Help with Train component

    Hi,
    I have to implement wizard based page flow for my application and I read that we can achieve it using train component. I am not able to find documentation or examples on it.
    Does any of you know any link to documentation and/or example program for it?
    I am trying to see if train component will suffice for our needs. We have simple sequence flow, conditional branching, looping within the wizard flow (like adding repetitive items within the flow) etc.
    Thanks in advance,
    _Jp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Here are several very simple examples of the train in UIX. I don't know of any full example program.
    <ctrl:page xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
    xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <ctrl:head>
    <html:title>&lt;train&gt; element</html:title>
    </ctrl:head>
    <ctrl:content xmlns:ui="http://xmlns.oracle.com/uix/ui">
    <stackLayout>
    <separator>
    <separator/>
    </separator>
    <contents>
    <link text="View Source"
    destination="${ctrl:eventUrl(uix, 'viewSource')}"/>
    <html:p/>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with no children or selection"/>
    <train/>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children but no selection"/>
    <train>
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value=2"/>
    <train value="2">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and selectedIndex=1"/>
    <train selectedIndex="1">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value=1 and selectedIndex=3 (value takes precedence)"/>
    <train value="1" selectedIndex="3">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value out of bounds low"/>
    <train value="-1">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 4 children and value out of bounds high"/>
    <train selectedIndex="7">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=1"/>
    <train value="1">
    <contents>
    <link text="Active Step1"/>
    <link text="Next Step2"/>
    <link text="Next Step3"/>
    <link text="Next Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=4"/>
    <train value="4">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=5"/>
    <train value="5">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Next Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=6"/>
    <train value="6">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Active Step6"/>
    <link text="Next Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=7"/>
    <train value="7">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Active Step7"/>
    <link text="Next Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=8"/>
    <train value="8">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Active Step8"/>
    <link text="Next Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=9"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Next Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and value=10"/>
    <train value="10">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Active Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 9 (value=9, maxVisited=9)"/>
    <train value="9" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 5 (value=5, maxVisited=9)"/>
    <train value="5" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 6 children. All children disabled except active step"/>
    <train value="4">
    <contents>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Active Step4"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Disabled Step" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 6 steps, one step disabled"/>
    <train value="5">
    <contents>
    <link text="Visited Step"/>
    <link text="Visited Step"/>
    <link text="Visited Step"/>
    <link text="Disabled Step" disabled="true"/>
    <link text="Active Step5"/>
    <link text="Next Step"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 11 and 4 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Disabled Step4" disabled="true"/>
    <link text="Visited Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Next Step10"/>
    <link text="Disabled Step11" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 10 and 5 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Disabled Step5" disabled="true"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Disabled Step10" disabled="true"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. Step 9 Active (value=9), Steps 10 and 11 and 4 and 5 disabled"/>
    <train value="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Disabled Step4" disabled="true"/>
    <link text="Disabled Step5" disabled="true"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Active Step9"/>
    <link text="Disabled Step10" disabled="true"/>
    <link text="Disabled Step11" disabled="true"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children. User returned to step 5 (value=5, maxVisited=9) Step 6 is disabled"/>
    <train selectedIndex="4" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Disabled Step6" disabled="true"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <!-- Beginning of tests with forms. Form names need to be unique -->
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=true, id is set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation for next step will occur."/>
    <form name="myForm1a">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="true" id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=true, id is set, unvalidated=true"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation for next step will *not* occur because unvalidated is set to true."/>
    <form name="myForm1b">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="true" id="TrainControl"
    unvalidated="true">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=false, destination set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is validation will not occur. Destination will be used in url."/>
    <form name="myForm1c">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="false"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train inside a form with validation. value=4, formSubmitted=false, destination not set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is no links will show"/>
    <form name="myForm2">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    <train value="4" formSubmitted="false">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    </contents>
    </form>
    <styledText styleClass="OraHeaderSubSub"
    text="Train outside a form with validation. formName is set. id is set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is formName will be used, and validation will occur"/>
    <form name="testForm">
    <contents>
    <messageTextInput name="costCenter" required="yes"
    prompt="Cost Center"/>
    </contents>
    </form>
    <train value="4" formName="testForm" id="TrainControl">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with no form. destination and id set"/>
    <styledText styleClass="OraTipText"
    text="Expected behavior is train has links, destination is the base url"/>
    <train value="4"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainSource">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Active Step4"/>
    <link text="Next Step5"/>
    <link text="Next Step6"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="Train with 11 children and destination. User returned to step 5 (value=5, maxVisited=9)"/>
    <train value="5"
    destination="http://bali.us.oracle.com/cabo/baja/release.html"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    <styledText styleClass="OraHeaderSubSub"
    text="subTrain Demo.
    To render a train which indicates that it is in a sub-process,
    use the train element and set the subTrain attribute to true.
    Here are a couple of examples: "/>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="&lt;train subTrain=&quot;true&quot; &gt;"/>
    <formattedText styleUsage="instruction" text="Train has 4 children."/>
    <train subTrain="true">
    <contents>
    <link text="Bali"/>
    <link text="Baja"/>
    <link text="Architecture"/>
    <link text="Release"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="&lt;train subTrain=&quot;true&quot; value=&quot;5&quot; maxVisited=&quot;9&quot;
    destination=&quot;http://www.oracle.com&quot;&gt; "/>
    <formattedText styleUsage="instruction"
    text="Train has 11 children. User returned to step 5 (value=5, maxVisited=9)"/>
    <train subTrain="true" value="5" destination="http://www.oracle.com"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    <stackLayout>
    <contents>
    <styledText styleClass="OraDataText"
    text="Same train as above, but without the subTrain attribute set (it defaults to false)"/>
    <train value="5" destination="http://www.oracle.com"
    id="TrainSource" maxVisited="9">
    <contents>
    <link text="Visited Step1"/>
    <link text="Visited Step2"/>
    <link text="Visited Step3"/>
    <link text="Visited Step4"/>
    <link text="Active Step5"/>
    <link text="Visited Step6"/>
    <link text="Visited Step7"/>
    <link text="Visited Step8"/>
    <link text="Visited Step9"/>
    <link text="Visited Step10"/>
    <link text="Next Step11"/>
    </contents>
    </train>
    </contents>
    </stackLayout>
    </contents>
    </stackLayout>
    </ctrl:content>
    <ctrl:handlers>
    <ctrl:event name="*">
    <ctrl:null/>
    </ctrl:event>
    </ctrl:handlers>
    </ctrl:page>

  • Trinidad train component

    Hi
    I am trying to place the Trinidad train component on my page. The syntax I use is <tr:train var="foo" value="#{processTrainMenuModel}">.
    By default the items will be placed horizontal, but I want to place them vertical. Is that possible?

    Not unless you provide a custom renderer. You should post Trinidad and MyFaces questions to the MyFaces and Trinidad mailing lists for this question.
    -R

  • Using SavePointRestore activities with Train Component not working.

    Hello,
    I am testing 'Save for Later' capabilities in 11g. I have a simple Three-Step scenario using a bounded task flow on which the SavePoint Restore functionality is working just fine. Now, If I am changing that bounded task flow to act as a Train and I am adding TrainButtonBar and Train components to each page. With this changes, when I am restoring a savepoint I am returned to the correct step, the form is populated with the correct data, but the Train and TrainButtonBar components dissapear.
    Is anyone encountered this situation?
    Thanks,
    Florin Marcus

    After little research I have notice that TrainButtonBar and Train components are not correctly deserialized from the database. If I remove them and still use a bounded flow as a train, everything works.
    Florin

  • Process Train Component Look and Feel

    I am extending the minimal skin for a project but want to retain the look and feel for default oracle rendered process train. However all I am getting is textual links for the process train.
    Please can you tell me how to re-create the graphical (O-O-O) aspect of the process train?

    I couldn't get the lines between the 'station' icons, but by playing with the border attribute I can get something that looks acceptable, but not the same. The line runs above the 'station' icons, not between. MyApp has a grey background, so the colors may look a bit odd and the arrow images I got from /usr/share/icons/crystalsvg/16x16/actions. It's not what you wanted but it's the best I could come up with:
    .AFTrainStation:alias{
      border-top-style:solid;
      border-top-width: 5px;
      padding-top: 30px;
      padding-right: 4px;
      padding-left: 4px;
    af|processTrain::visited{
      background-image: url(/MyApp/skins/MySkin/images/1leftarrow.png);
      background-position: top center;
      background-repeat: no-repeat;
      border-top-style: ridge;
      border-top-color: #33F8FF;
    af|processTrain::unvisited{
      background-image: url(/MyApp/skins/MySkin/images/1rightarrow.png);
      background-position: top center;
      background-repeat: no-repeat;
      border-top-style: ridge;
      border-top-color: #3EA2FF;
    af|processTrain::active{
      background-image: url(/MyApp/skins/MySkin/images/1downarrow.png);
      background-position: top center;
      background-repeat: no-repeat;
      border-top-style: groove;
      border-top-color: #9FF4FF;
    af|processTrain::disabled{
      background-image: url(/MyApp/skins/MySkin/images/button_cancel.png);
      background-position: top center;
      background-repeat: no-repeat;
    af|processTrain::visited-link {
      color: #ffffff;
    af|processTrain::unvisited-link {
      color: #ffffff;
    af|processTrain::sub-start{
      border-color:#336699;
      border-style:solid;
      border-width:2px 2px 0px 0px;
      padding:0pt
    af|processTrain::sub-end{
      border-color:#336699;
      border-style:solid;
      border-width:2px 0px 0px 2px;
      padding:0pt

  • Train Component Question

    Hi im using Jdeveloper 11.1.1.2.0, and i have this use case: I have task flow with train and 5 page fragments. I need to perform commit on every page fragment. Its this possible ??

    I've basically followed this http://groundside.com/blog/DuncanMills.php?title=decorating_the_train but i have custom validations of required fields. Lets say i have 2 pageFragments A and B. Page A, requires ID User, but following the train decoration example, the validation appears once one page A and then when Page B is loaded...

  • ExecuteWithParams in Train component

    Hi,
    I've bounded task flow with two page fragments and train. On clicking the second train stop, I need to execute 'ExecuteWithParams' of the second page fragment's iterator.
    Kindly guide me how to do this in task flow itself. And one thing i don't want train button bar.
    Thanks in advance

    Usha,
    As explained in the documentation, you can follow these steps.
    1. Have a method in your backing bean (the same bean may hold the value which you would like to pass to executeWithParams).
    2. This method would get executeWithParams from the bindings and execute it by setting the parameter value (you can bind the field to this bean - from stop1, and hold the value).
    3. Add a wild card control flow case.
    4. Add a method call activity pointing to the backing bean method you've created in step 2.
    5. Create a control flow case from wild card control flow to the method call activity and then from the method call activity to your train stop 2 view.
    Does this work?
    -Arun

  • 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

  • Train Stop Lables not Visible

    Hi All,
    I'm using Jdeveloper REL1 PS2 with ADFBC
    I'm having a problem getting my train stop labels to render. Besides the train stop label not being visible, everything else is working as advertised. I can navigate though the train stops, the data on my pages appears as expected.. etc.
    Here is what I've done so far:
    1. I created a bounded taskflow with page fragments and checked "create train" checkbox.
    2. In my task flow, I've assigned *<display-name>* values to each view activity participating in the train. See code below. According to the documentation I've read, this is what I need to set to label my train stops. However, when I run my task flow in a region, the the labels are not visible.
    I've read section 18.8 in the Fusion Developer's guide, I've followed examples in these two blogs:
    http://biemond.blogspot.com/2007/11/taskflow-train-in-jdeveloper-11g.html
    http://biemond.blogspot.com/2008/06/advanced-taskflow-train-features.html
    I've read previous posts regarding this issue like the this one:
    Re: Creating ADF Train
    Which states *"In Task flow click the View activity in structure window Right click Choose > insert inside > Display name and set the value to it."*
    I also went through the train taskflows and pages in the Fusion Order Demo app and I cannot see how my implementation of the taskflow or how I'm adding the af:train component to my .jsff pages is different from the examples that I've found.
    Any help would be appreciated. Thanks!
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="EditEventTrainFlow">
        <default-activity id="__34">EditEventDetail</default-activity>
        <transaction id="__15">
          <new-transaction/>
        </transaction>
        <data-control-scope id="__16">
          <isolated/>
        </data-control-scope>
        <view id="EditEventDetail">
          <display-name id="__10">Edit Event</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/EditEventDetail.jsff</page>
          <train-stop id="__9"/>
        </view>
        <view id="EditEventRoomAssignments">
          <display-name id="__38">Assign Rooms</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/EditEventRoomAssignments.jsff</page>
          <train-stop id="__11"/>
        </view>
        <task-flow-return id="Submit">
          <outcome id="__13">
            <name>done</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <task-flow-return id="Cancel">
          <outcome id="__14">
            <name>cancel</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <view id="ConfirmEventChanges">
          <display-name id="__18">Confirm</display-name>
          <page>/oracle/ou/oep/ui/pages/fragments/ConfirmEventChanges.jsff</page>
          <train-stop id="__17"/>
        </view>
        <train/>
        <control-flow-rule id="__19">
          <from-activity-id id="__20">*</from-activity-id>
          <control-flow-case id="__21">
            <from-outcome id="__23">cancel</from-outcome>
            <to-activity-id id="__22">Cancel</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule id="__24">
          <from-activity-id id="__25">ConfirmEventChanges</from-activity-id>
          <control-flow-case id="__27">
            <from-outcome id="__35">submit</from-outcome>
            <to-activity-id id="__26">Submit</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__29">
            <from-outcome id="__30">goToEditEventDetail</from-outcome>
            <to-activity-id id="__28">EditEventDetail</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__32">
            <from-outcome id="__33">goToRoomAssignments</from-outcome>
            <to-activity-id id="__31">EditEventRoomAssignments</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

    Hi,
    You need to first name the view activity to desired name first and then change the display name.You will find a good example in JDeveloper Help Topics under Cue Cards>Work with ADF Technologies>Implement a Multi-Step page Flow with ADF Train>Step 2
    For Ex:
    In the Application Navigator, select the ViewController project and open the Create Task Flow dialog. Enter train-flow.xml in the File Name field. Select both Create as Bounded Task Flow and Create with Page Fragments. Then select Create Train and click OK.
    From the Component Palette, ADF Task Flow page, Components panel, drag View and drop it on the blank canvas in the diagrammer. Rename the activity to start. Repeat the procedure to add three more view activities, using the following names: addresses, payment, review.
    Drag and drop Task Flow Return on the diagram. Accept the default name of taskFlowReturn1. In the Component Palette, click Control Flow Case. On the diagram, click the review icon, then click the taskFlowReturn1 icon. Rename the control flow case element to commit.
    In the Structure window, expand view - start . Right-click train-stop and choose Insert inside train-stop Display Name. In the Property Inspector, enter Start in the Display Name field. Repeat the procedure in step 6 to add train stop display names to the remaining view activities: view - addresses , view - payment, view - review . Use the following values, respectively: Addresses, Payment, Review. In the Application Navigator, select the ViewController project and open the Create Task Flow dialog again. Enter childtrain-flow.xml in the File Name field. Make sure Create as Bounded Task Flow and Create with Page Fragments are selected. Then select Create Train and click OK. From the Component Palette, drag View and drop it on the diagrammer. Rename the activity to billing. Repeat the procedure to add one more view activity, using the name shipping. Drag and drop Task Flow Return on the diagram. Change the name to childFlowReturn1. Draw a Control Flow Case from shipping to childFlowReturn1. Rename the case element to done. In the Structure window, expand view - billing. Right-click train-stop and choose Insert inside train-stop Display Name. In the Property Inspector, enter Billing in the Display Name field. Repeat the procedure in step 13 to add
    Hope this helps!
    Edited by: Swathi Patnam on Sep 9, 2010 2:16 PM

  • Train-stop display-name property bug?

    Hi all,
    I'm using JDeveloper 11.1.1.4.
    When using train taskflow with fragments I noticed that when I enter Display name property on view (train stop) it doesn't appear as train stop title on page at all.
    When I enter Display name in property inspector it generates code like this:
    <view id="configuration">
        <display-name id="__3">#{bundle.configuration}</display-name>
        <page>/views/configuration.jsff</page>
        <train-stop id="__5"/>
    </view>After moving display-name tag inside train-stop it looks like this:
    <view id="configuration">
        <page>/views/configuration.jsff</page>
        <train-stop id="__5">
          <display-name id="__3">#{bundle.configuration}</display-name>
        </train-stop>
    </view>and it works fine (displays in af:train component on page).
    Is this a bug or by design?
    As far as I remember this worked fine before 11.1.1.2?

    Hi,
    this is bug 11821340
    Frank

Maybe you are looking for