Train-stop not Expected

Hi All
I am developing a bounded task flow, following the JDeveloper 12c tutorials. After finishing I got two errors:
Element 'train-stop' not expected and
Element not completed 'view'
I am newbie to this, any help please?? I searched about this problem but I didn't find any solution.
Thank you in advance

Not sure where you did wrong.  You may want to look into a sample http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html which does how to use trains.  It's for an older version of jdev, but should work on 12c too.
Timo

Similar Messages

  • 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

  • After recent upgrade to Yosemite on Macbook air bluetooth audio cuts out and associated video stops with audio. Likewise with airplay and Apple TV. I have deleted all my saved wifi connections and restarted numerous times. I do not expect a resolutio

    After recent upgrade to Yosemite on Macbook air bluetooth audio cuts out and associated video stops with audio. Likewise with airplay and Apple TV. I have deleted all my saved wifi connections and restarted numerous times. I do not expect a resolution from the community, but hope to get the attention of Apple engineers. If you are having same problems or have a miracle cure I am all ears.

    May start my own thread, but I'm having similar issues.
    I've been using an old iMac (running 10.7.5) and Apple TV for years with no issues. Last week I bought a new Macbook Pro running Yosemite and have had audio issues multiple times. The weird thing is that sometimes it works flawlessly, other times (like now) I spend half an hour just trying to get a song to play.
    My issues are: When I got to "computers" in Apple TV to stream my music, my music is sometimes chopper or intermittent, and I seen to know when it's going to happen based on the status wheel just before it plays. When I choose a song, the status wheel will spin for an unusually long time, usually an indicator that the audio is either not going to work, or stutter.
    When it does finally pull up a song, the playhead sits at the beginning of the song for a good 3-5 seconds before actually playing. Then, when it starts playing, it's all downhill. It will play a few seconds, drop out, play a few more seconds, drop out, and then ultimately the playhead will keep moving across the song as if it's playing, but there's no audio.
    Again, this is a new phenomenon never experienced by me. I've tried everything I could think of, some of them all at once:
    • restart Apple TV
    • restart Macbook Pro
    • quite iTunes/open
    • turn off Home Sharing on iTunes then reconnect it
    • unplugging and cycling both my modem and router
    None of these have alleviated the problem.
    The odd thing is, like this morning, the audio started up perfectly and never gave me any issues. It wasn't until later in the day that it started. Perhaps after the macbook pro had been put to sleep? Not sure.
    Regardless, this is an annoying trait, one that's new to me and my system (as stated, worked flawlessly until my new purchase), and is 100% limited to either a) the macbook pro b) Yosemite or c) both of them.

  • Dick Permission--"ACL" found but not expected...

    Safari/internet access is great after I do a disk permission verify & repair. After a week or so it is back to the slow mode. WHAT is "ACL"? and why does it go back after I have repaired the disk permissions? Here is a typical line of the detail
    ACL found but not expected on "System/Library/User Template/English.lproj/Library/Keyboard Layouts".

    ACL is Access Control List and has to do with permissions, the notice you get doesn't have anything to do with Safari and can be safely ignored, it turns up on most people's permissions lists. Safari probably clogs up because the cache fills up. Go to Safari in the menu bar and select 'empty cache'. It also helps to quit and restart Safari often to stop it from hogging the CPU.

  • Difficult to input train-stop display-name

    Hi, experts,
    In jdev 11.1.2.3,
    When i try to input train-stop display-name in the Property inspector palette,
    I do have input the name string (and leave mouse from the Display name field to ID field) and click the save button in jdev,
    but infact this display name has not been saved, next time when i come back from some where to view it, it's empty.
    And I have stopped the running of app, the computer is OK(not hanging), jdev can do other works. but this issue happens several time today (some time it can work), rather difficult to input display name.
    (This issue also happens sometime on VO's hint field inputs).
    Is that a bug of jdev? some one else has met with it? or just a mirage of me?
    Thanks.

    Hi, Timo and Vinay
    Yes, I do have tried press enter key or leave the mouse to another field on the same pallette.
    but the "Save" button didnot enabled, and i have to press the "Save all" button. and cannot be saved in fact.
    This issue not always happens, but i have met many times today.
    Thanks.

  • 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

  • Capturing the event on clicking the af:train stop icon

    We are using an af:train as follows
    <fnd:applicationsPanel>
    <f:facet name="appsPanelTrain">
    <af:panelGroupLayout layout="horizontal" halign="center"
    id="panelGroupLayout2">
    <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    id="train1"/>
    </af:panelGroupLayout>
    </f:facet>
    </fnd:applicationsPanel>
    I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
    Is there a way to capture the event of this click?

    This should help
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf

  • How to set value for  skip condition in train stop property of train compnt

    Hi,
    Iam using JDev 11.1.1.5 version, i have created a TaskFlow where having train components pointing to different jsff pages, moving from one jsff page to another jsff page.
    I want to validate the input fileds in one of the jsff page, then only have to move to next jsff page. For this, how can i set skip property of train component....to disable to go for next train component...?
    Note: I want to set boolean value(returns 'True', if all input fileds are filled, otherwise 'False') into skip property of train component.
    Regards.

    You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
    Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
    For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
    Also, you can try navigating to different train stops programmatically.
    Check: 082.      How-to programmatically navigate ADF train models
    in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Defer train-stop navigation for Custom Processing

    Hi,
    I'm using JDeveloper version - 11.1.1.6
    I'm using Train Component in one of the task-flow with 3 train stops. I want to defer the Train stop navigation if the custom validation fails.
    I referred the sample 97 in ADF Code Corner - "How-to defer train-stop navigation e.g. for custom form validation".
    I implemented the code in similar lines. I'm able to see the warning dialog in my application when validation condition is not met. When i click the 'OK' button, I'm able to navigate to the next train stop.
    But when I click the cancel in the dialog and update the view to fulfill the condition, I'm not able to navigate to next stop.
    My Code snippet is as follows:
                   <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" id="t1" var="trainNode" rendered="#{(pageFlowScope.TDMConnectivityChannelTreeBean.hideSearch)}">
                        <f:facet name="nodeStamp">
                            <af:commandNavigationItem id="cni1" disabled="#{trainNode.disabled}" textAndAccessKey="#{trainNode.textAndAccessKey}"
                                                      visited="#{trainNode.visited}" actionListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processTrainStop}">
                                <f:attribute name="trainStopNode" value="#{trainNode}"/>
                            </af:commandNavigationItem>
                        </f:facet>
                    </af:train>
                    <f:facet name="bottom">
                        <af:popup contentDelivery="lazyUncached" id="pt_p1" binding="#{backingBeanScope.trainSourceDialog}">
                              <af:dialog id="pt_d1" title="Confirmation Dialog" dialogListener="#{pageFlowScope.TDMConnectivityChannelTreeBean.processDialogAction}">
                                    <f:facet name="buttonBar"/>
                                    <af:outputText value="Source Channels are not selected, Do you want to navigate to Target Connectivities?" id="pt_ot1"/>
                               </af:dialog>
                         </af:popup>
                    </f:facet>
            Please let me know if I'm missing something here.
    Thanks
    Ravi

    Frank,
    I tried to put the following code in the action listener method and I'm able to navigate to next stop.
                    UIComponent comp = (UIComponent) ADFUtil.evaluateEL("#{backingBeanScope.trainSourceDialog}");
                    if (null != comp) {
                        UIComponent dialog = comp.getChildren().get(0);
                        if (null != dialog) {
                            queueTrainStopEventToRegion(selectedTrainStop.getOutcome(), dialog);
                    }Not sure why I have to do this. Can you comment on this?
    Thanks
    Ravi

  • Change the language in the display-name of a train stop

    Hello,
    does anybody know how to use internationalization in the <display-name> of a train stop?
    Bye

    Hi,
    I use the default model, and when trying to set the Display Name in the View Properties (a train stop), in the train task flow, i can not select a resource boundle key in the expression builder.
    If I set something like:
    <view id="datosRegistro">
    <page>/registro/datosRegistro.jsff</page>
    <train-stop>
    <display-name>#{viewcontrollerbundle['trainlabel']}</display-name>
    </train-stop>
    </view>
    Nothing appears in the train stop label.
    Of course, I have register the resource bundle in faces-config.xml file
    Thanks

  • Train stop icon display issue

    I am using Jdeveloper 11.1.1.4.0
    Is there any way we can set the icons for each train stop in a programmatic way in the <af:train> component ?
    I have a custom train model class that extends TrainStopModel and provides getIcon() method.
    When I tried to use the nodeStamp option, icons are getting displayed twice ( one line below another) in a horizontal layout
    <af:train var="node" value="#{viewScope.StepTrain}" id="train">
    <f:facet name="nodeStamp">
    <af:commandNavigationItem
    text="#{node.label}"
    disabled="#{node.disabled}"
    visited="#{node.visited}
    icon="#{node.icon}"
    id="commandNavigationItem"
    />
    </f:facet>
    </af:train>
    And if I don't use the "nodeStamp", ADF is not displaying the custom icons at all.
    Component document says this component offers alert icon customization. How can we use that ( i.e how to set the status of a train stop to error, warning etc.) ?

    Hi,
    I have implemented train bar functionality with icons for each train stop using navigationPane.
    The sample can be found at: http://andrejusb.blogspot.in/2011/12/adf-train-apply-custom-train-stop-icons.html
    Check if it works for you.
    -Rathnam

  • Showing the custom train stop as default activity based on condition

    Hi Folks,
    I'm using JDeveloper version 11.1.1.5.0. I have requirement where in i have to show the custom train stop as default train stop based on some business logic instead of default activity mentioned as part of task flow with train.
    Test Case:
    I have a dynamic region where i'm loading diff task flows based on condition. Let us consider i have two task flows TF1, TF2 and One of these task flows (TF2) contains a train.
    TF2 task flows has a train with train stops as ts1, ts2 and ts3 and ts1 has been configured as default activity in TF2 task flow
    I'm loading these task flows into dynamic region based on my business logic. Currently i'm in TF1 and i'm doing some action in TF1 page. Based on my business logic in one of the button actions in TF1, i have to load TF2 into region and have to set either ts1, ts2 or ts3 as default activity. its not like every time only configured default activity as part of TF2 is shown.
    Consider this case. in IF1 i have 3 buttons b1, b2 and b3. When i click on b1, i have to load TF2 into region and ts1 as default activity. Like wise if i click on b2 in TF1, i have to load TF2 abd ts2 as default activity. Like wise if i click on b3 in TF1, i have to load TF2 abd ts3 as default activity.
    I have summarized my test case here. Its not exactly 100% same but it more or less like based on some business logic in TF1 i have to load TF2 with specific train stop as default activity.
    Please help me in this regard. Is this possible in ADF? if yes provide some pointers.
    NOTE:
    I'm able to show the specific trainstop as the selected one but its content is not showing. Though i'm able to see my intended trainstop selected but content is always the content related to the default activity configured as part of task flow.
    I have used below code to acheive ( setting atleast intended train stop as the selected on)
    TrainModel trainModel = TrainUtils.findCurrentTrainModel();
    trainModel.setCurrentTrainStop(activityId);
    [activity id i'm getting from model it self like java.util.Map<ActivityId, TrainStopModel> mapTrainStops = trainModel.getTrainStops(); and intended activityId is provided}
    // note end
    Thanks,
    Mahipal

    Hi Jobinesh,
    Thanks for your reply.
    When i try to do the navigation with in the task flow i.e. with in the train task flow, i'm able to navigate fine. But for different taskflow, i'm unable to do it.
    for ex: in my case i have three train stops ts1, ts2 and ts3. I have placed a button in ts3 and i'm returning the respective navigation el expression to navigate to either ts1 or ts2 in action method of this button. I'm able to do this successfully. but when i come from different taskflow, i'm unable to do this.
    I have tried this link as a workaround but it is not working.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf
    i have tried this way, but it is not working.
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExpressionFactory expressionFactory =
    fctx.getApplication().getExpressionFactory();
    ELContext elctx = fctx.getELContext();
    MethodExpression methodExpression =
    expressionFactory.createMethodExpression(elctx,
    "_adfcActivityRequest./WEB-INF/task-flow-definition.xml#task-flow-definition@*ts3*",
    String.class,
    new Class[] { });
    *//NOTE: ts3 is the activity id of third train stop*
    //queue action in region
    myspaceRegion.queueActionEventInRegion(methodExpression,
    null, null, false,
    0, 0,
    PhaseId.INVOKE_APPLICATION);
    Please let me know any pointers for this problem. is there any example with routers navigation rules which can be called from another task flow.
    Thanks,
    Mahipal

  • Change af|train::stop-icon-visited_hover in PS6

    Hi:
    I am using PS6. I want to change the train icon to be our custom icons.
    I found that I have problem getting rid of the background image in the css class: .af_train_stop-icon-unvisited:hover and .af_train_stop-icon-visited:hover
    I tried to select the style af|train::stop-icon-visited_hover on the demo page: (http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/train.jspx?), but it does not seem to have any effect. Is it a bug? Thank you!

    Hi,
    the skinning documentation is quite clear on the skin selector:
    +"af|train::stop-icon-visited      +
    +To set the background image for a visited stop. Use pseudo-classes :hover and :active to customize look."+
    af|train::stop-icon-visited:hover not af|train::stop-icon-visited_hover
    Frank
    Btw.: PS6 is not yet available to public. This is a public customer facing forum. Apparently you are from Oracle and have access to internal builds. Can you stop posting questions about non-public bui`lds on this forum?

  • Dynamically Add and Remove Train Stop with version 11.1.2.3

    I have found examples with prior versions, such as http://adfpractice-fedor.blogspot.com/2011/12/dynamic-adf-train-showing-train-stops.html.
    But, they do not work in 11.1.2.3.
    It appears that the APIs have changed considerably.
    Please advise as to a similiar example that is based on the API model for 11.1.2.3
    Thanks in advance for your help.

    Hi,
    I have a requirement to dynamically add different train stops at runtime, which are not part of the task flow at design time. I would like to build the train at runtime based on various conditions that occur. Is this possible?
    Train stops can only be removed from the train model before the first view renders, which means during task flow initialization. To a later point you cannot remove but hide stops. The train model is created upon task flow initialization too and any train stop that is not part of the model virtually doesn't exist. In your case I think creating a custom train model from ground up and using this with the train is the way to go. The default task flow metadata based implementation doesn't seem to do what you need it for. Alternatively, if you can predict the maximum number of train stops, you can design them at design time and then remove those you don't need at runtime using a HashMap reference in the train stop configuration and check the HashMap values upon initialization.
    Here's a write up on trains I did in the past: http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html
    More documents you find on ADF Code Corner http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html (just search for train)
    Frank

Maybe you are looking for

  • Aggregates, VLAN's, Jumbo-Frames and cluster interconnect opinions

    Hi All, I'm reviewing my options for a new cluster configuration and would like the opinions of people with more expertise than myself out there. What I have in mind as follows: 2 x X4170 servers with 8 x NIC's in each. On each 4170 I was going to co

  • Excise tab at item level in MIGO screen

    Dear Gurus, Am getting excise invoice tab at header level, but not at item level. Because of that I am facing so many problems like posting on assesable values, manually changing those values etc.. Let me know what else required to be configured to g

  • Empty fields in a fillable PDF

    Hi all, We are a company that relies heavilly on fillable PDF files. We create them in LiveCycle ES8.2 and distribute them to our students all over the world. Needless to say those students use a wide variety of hardware, ranging from MAC's with diff

  • Best practice for promoting roles

    I would like to know what is the best practices for promoting Administrative and/or normal Roles between environments. If I make a change to the capabilities of a role, I'd rather not create a whole new build if I didn't have to. Would exporting from

  • Maximum Bit Rate help

    I have been trying to find the best bit rate settings to display from a USB drive on an Xbox 360 or PS3.  I found the recommended settings but the maximum bit rate that I set it at, is always exceeded during playback. For example if I am using the h.