Drag and drop a bounded task flow in a jspx page

Hi!!
I am using jdeveloper 11.1.2.1 I had created a Bounded task flow which contains a jsff
page.While i am trying to drag and drop this Bounded task flow as a region in jspx page
am getting the error as
Cannot create a region from a taskflow containing facelets fragements in a
jspx page.

see the difference between JSP XML documents and Facelets-
http://oracleadf-java.blogspot.in/2013/05/beauty-of-adf-taskflow-difference-bw.html
both are different view technology.
Always Remember if
fragment is .jsff (JspXML type)-- main page must be of JSP XML type (.jspx )
fragment is .jsff (Facelets typee)-- main page must be of Facelets type (.JSF)
_Ashish

Similar Messages

  • Trains and Fragment Based bounded task flows

    The Problem:
    I am trying to create a bounded task flow based on fragments using a train. I have created the train and it is showing up on my page. Unfortunately, when I click next on the af:trainButtonBar the UI does not update. If I navigate off the page and come back to the page containing the train the UI is on the next task in the task flow and the train is updated but it is not happening through partial page rendering. Does anyone have an idea why the UI is not updating? Here are some of the file contents:
    My first Fragment in the task flow (InputsNewBasic.jsff):
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:pageTemplate viewId="/page_templates/TrainFragment.jspx">
        <f:facet name="fragementContent">
          <af:panelFormLayout>
            <af:inputText label="Name" inlineStyle="width:100%;"/>
            <af:inputText label="Description" rows="3" inlineStyle="width:100%;"/>
            <af:selectOneChoice label="Plugin Source">
              <af:selectItem label="Plugin Number One"/>
              <af:selectItem label="Plugin Number Two"/>
              <af:selectItem label="Plugin Number Three"/>
              <af:selectItem label="selectItem 1"/>
            </af:selectOneChoice>
            <af:inputText label="Input File Mask"/>
            <f:facet name="footer"/>
          </af:panelFormLayout>
        </f:facet>
      </af:pageTemplate>
    </jsp:root>
    My TrainFragment.jspx template:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <af:pageTemplateDef var="attrs">
        <af:xmlContent>
          <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
            <display-name>TrainFragment</display-name>
            <facet>
              <description>This is the content that will be presented for the
                           fragment</description>
              <facet-name>fragementContent</facet-name>
            </facet>
          </component>
        </af:xmlContent>
        <af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" var="trainNode">
          <f:facet name="nodeStamp">
            <af:commandNavigationItem text="#{trainNode.textAndAccessKey}"
                            visited="#{trainNode.visited}"
                            action="#{trainNode.action}"
                            disabled="#{trainNode.disabled}"/>
          </f:facet>
        </af:train>
        <af:trainButtonBar value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"/>
        <af:panelGroupLayout>
          <af:facetRef facetName="fragementContent"/>
        </af:panelGroupLayout>
      </af:pageTemplateDef>
    </jsp:root>
    My Task Flow Definition:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller">
      <task-flow-definition id="InputsNewTrain">
        <default-activity>InputsNewBasic</default-activity>
        <view id="InputsNewBasic">
          <page>/page_fragments/inputs/InputsNewBasic.jsff</page>
          <train-stop>
            <description>
              Specify the basic information for the Input definition.
            </description>
            <display-name>Basic Information</display-name>
            <sequential>true</sequential>
          </train-stop>
        </view>
        <view id="InputsNewDefineMap">
          <page>/page_fragments/inputs/InputsNewDefineMap.jsff</page>
          <train-stop>
            <description>
              Define the Input map
            </description>
            <display-name>Map Inputs</display-name>
            <sequential>true</sequential>
          </train-stop>
        </view>
        <view id="InputsNewCommit">
          <page>/page_fragments/inputs/InputsNewCommit.jsff</page>
          <train-stop>
            <description>
              Commit the Input definition
            </description>
            <display-name>Commit Definition</display-name>
            <sequential>true</sequential>
          </train-stop>
        </view>
        <train/>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>Message was edited by:
    JohnJ

    Hi,
    Have you try to set Refresh and RefreshCondition for your TaskFlow on the Page Definition
    for example:
    Refresh=IfNeeded
    RefreshCondition=<isPostback>

  • Outlook email drag and drop to sharepoint task list

    We are using using Outlook 2007 (Soon to be switching to 2010) and Sharepoint Server 2010.
    We want to allow email drag and dropping which is accomplished through the folder list view.  However when doing this this it does not take the attachment.
    My question is, is this possible or do we need to develop an add-on for outlook?
    Thanks

    Neither be it SharePoint 2010 or SharePoint 2007, you can not do it without developing an add-on or writing additional code. Depending on your complexity of SharePoint, it is relatively easy to build an add-on if you only want to drag and drop Outlook email
    to SharePoint folder.
    SharePoint Outlook Integration add on is one of such tool which is functioning well if you have a small number of mails to transfer to SharePoint, but if you drag larger number of Outlook emails to SharePoint, it is quick slow to finish the whole process. 
    Good luck.

  • Drag and drop image from local files site list to page.

    Not working on all my documents. Must be some setting. Any ideas what is wrong?

    To be honest, I never drag & drop in DW.  I always use Insert > Image, Select image source...
    Nancy O.

  • Doco/functionality mismatch: Adding a Bounded Task Flow to a Page

    Hi JDev team
    With JDev 11g TP4 and the latest published ADF Guide in hand, under section 14.3 "Adding a Bounded Task Flow to a Page", subsection "To add a bounded task flow containing pages to a JSF page:" it notes that when you drag n drop a bounded task flow from the App Navigator into a JSF page you get the choice of creating a button or link. I don't get this option, instead I can create a region or a dynamic region in the drag n drop submenu.
    Cheers,
    CM.

    Chris,
    note that it says "containing pages", not "containing page fragments". If your taskflow contains page fragments "jsff" then the choice is a region, if it is pages (jspx) then the choice is button or link to launch the taskflow.
    Let me know if this still doesn't work for you
    Frank

  • Passing Parameters to Bounded Task Flow from JSPX

    Hi All,
    1. Created a JSPX page using UIShell template.  This page contains 4 UI Components (InputComboBoxListOfValues) in SingleObjectContextArea.  Created a Managed Bean for this page and capture the selected value in ValueChangeListner and added the value to pageFlowScope.
    2. Created Unbounded Task Flow, dragged the JSPX page.
    3. Have a existing Bounded Task Flow with page fragments, it has MethodCall activity which is expecting inputParameter values from JSPX.
    4. To call the Bounded Task Flow from Unbounded Task Flow (has JSPX page) created 2nd JSPX page using UIShell template.
    5. Dragged the existing Bounded Task Flow into 2nd JSPX page, in context menu selected Region.  This Region is created in SingleObjectContextArea of UIShell.
    6. When dragged its asking about inputParameter mapping of Bound Task Flow.
    7. Configured the inputParameter value which are coming from pageFlowScope.
    8. Dragged the controlFlow from 1st JSPX to 2nd JSPX page to complete the Navigation.
    9. When running the Unbounded Task Flow, it showing 1st JSPX with LOV.
    10. Selected the values and clicked on Submit Action.
    11. Its now showing 2nd JSPX which contains Bounded Task Flow.
    12. But its displaying empty records table.  (Note: I am passing parameters to MethodCall inputParameters as pageFlowScope, My DB has displaying records based on inputParameters when tested it from OrcleSQLDeveloper)
    Could any body help me on this issue.
    My Code Snippets of Data Binding of 2nd JSPX page which has Bound Task Flow as a regionModel.:
    <taskFlow id="TaskFlow1"
                  taskFlowId="/WEB-INF/oracle/apps/TaskFlow1.xml#TaskFlow1"
                  activation="deferred"
                  xmlns="http://xmlns.oracle.com/adf/controller/binding">
          <parameters>
            <parameter id="PartnerKeyType" value="#{pageFlowScope.PartnerKeyType}"/>
            <parameter id="PartnerKey1" value="#{pageFlowScope.PartnerKey1}"/>
            <parameter id="InteractionPartnerRole"
                       value="#{pageFlowScope.InteractionPartnerRole}"/>
            <parameter id="BusinessProcessName"
                       value="#{pageFlowScope.BusinessProcessName}"/>
          </parameters>

    Hi
    first of all Can you get the pageFlow scope variable in taskflow?which you are passing from jspx page?
    if you are able to get the Lov value in Taskflow try refresh taskflow on changing the LOV.
    you need to add input parameter type as boolean,change the parameter from false to true when the LOV value changed.
    now use refreshifNeeded property in pagedef bindings file

  • How to pass a parameter to a bounded task flow?

    Hi,
    We are facing issue while passing parameter from a bounded task flow to another bounded task flow and then showing the passed parameter in a jspx page.
    We have a caller task flow with following component:
    1. A jspx page
    - In this jspx we have a text box have its value as #{pageFlowScope.inputvalue}.
    - Also we have a command button which has its "Action" as the control flow that leads to the "called" task flow.
    2. A bounded task flow named "called".
    So, we call the "called" task flow on the button click in the jspx page.
    Also, in called taskflow we have a jspx page where we are using a output label to show the parameter passed from caller task flow to the called task flow.
    We performed the following steps to set the parameter passing from caller task flow to the called task flow.
    1. Select the input text component on the JSF page.
    2. In the Property Inspector, enter a value for the input text component. You can specify the value as an EL expression, for example #{pageFlowScope.inputValue}.
    3. In the Application Navigator, double-click the name of the called task flow to open its diagram.
    4. Click the Overview tab for the called task flow.
    5. Click Parameters and expand the Input Parameter Definition node.
    6. Click the Add icon next to Input Parameter Definition.
    7. In the Name field, enter a name for the parameter, for example, inputParm1.
    8. In the Value field, enter an EL expression where the parameter value is stored and referenced, for example, #{pageFlowScope.inputValue}.
    9. In the Class field, enter a Java class for the input parameter definition. If you leave the Class field empty, its value is by default implicitly set to java.lang.String.
    10. In the editor, open the diagram for the calling task flow.
    11. In the Application Navigator, drag the called ADF bounded task flow and drop it on top of the task flow call activity that is located on the calling task flow. Dropping a bounded task flow on top of a task flow call activity in a diagram automatically creates a task flow reference to the bounded task flow.
    12. In the Property Inspector for the task flow call activity, click Parameters and expand the Input Parameters section.
    13. Enter a name that identifies the input parameter.
    14. Enter a parameter value, for example, #{pageFlowScope.parm1}.
    Now when we try to fetch the value of parameter using #{pageFlowScope.parm1} in the jspx in called taskflow, its not giving the desired value.
    We even tried to set the to and from parameter of the jspx in called askflow. But no success.
    Can anyone let us know if we are doing smething wrong or exact steps to configure passing of parameters to a bounded task flow and retrieving it in a jspx page will also help.
    Thanks in advance.

    Hi Tushar,
    In step# 14, the value should be "#{pageFlowScope.inputValue}" (should be the same as the value in step#2) .
    tushar wrote:
    Now when we try to fetch the value of parameter using #{pageFlowScope.parm1} in the jspx in called taskflow, its not giving the desired value.To display the passed parameter, you should use "#{pageFlowScope.inputValue}"<----- should be the same as the value in step#8
    Regards,
    Rommel Pino

  • How to call page in adfc-config from bounded-task-flow return?

    Hello everybody, I am using JDeveloper 11.1.2.3.0
    I have in my adfc-config some pages and one bounded-task-flow (with pages, not page fragments). I call the bounded task flow from one of my pages but I want that when I return from the bounded-task-flow to redirect the page to another page rather than the page that called it. I dont know if this can be done, but do you have any idea on how to achieve something like this?
    Thank you

    Here is your sample http://tompeez.wordpress.com/2013/06/18/jdeveloper-navigation-after-return-from-bounded-task-flow/
    Timo

  • 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).

  • Call a jsff page in an bounded task flow.

    Hi,
    Am using jdeveloper 11.1.1.6.0
    I have a bounded task flow named welcomeTF.xml which calls another bounded task flow named LeadsTF. The LeadsTF bounded task flow contains 3 jsff pages(named lv.jsff, lv1.jsff, lv2.jsff).
    WelcomeTF(Bounded TaskFlow)------------------------------------>LeadsTF(Bounded Task Flow).
    When my user runs the jspx page the Welcome page(from WelcomeTF) renders which has 3 buttons (named Button1,Button2,Button3). These 3 buttons should call the LeadsTF Bounded task flow but with different jsff pages.
    Button1  ------------------------------->  LeadsTF(lv.jsff)
    Button2  ------------------------------->  LeadsTF(lv1.jsff)
    Button3  ------------------------------->  LeadsTF(lv2.jsff)
    How can i achieve this? Please help me with the samples.
    Regards,
    Prasad K T.

    You can define a TF parameter for the LeadsTF and use this parameter to route the navigation to either lv.jsff, lv1.jsff or lv2.jsff when entering this TF:
    Add a TF parameter (e.g. call it "InitialTarget" and map it to #{pageFlowScope.initialTarget})
    Add an ADF Router activity as a default activity in LeadsTF
    Configure the router activity to navigate to the appropriate JSF fragment depending on the value of #{pageFlowScope.initalTarget}
    Make the buttons in the parent TF set different values of the TF parameter when calling the LeadsTF
    Dimitar

  • Bounded-Task-Flow Page Fragment Control Flow Help

    jDeveloper: 11.1.1.0.2
    I am having an issue trying to figure out the correct way to use control flow cases between a bounded-task-flow with page fragments and an unbounded-task-flow page. We have taken the approach in our application to have a few shell / container pages to host bounded-task-flows made up of page fragments to facilitate re-usability and to speed up development. There are 4 or 5 shell pages on the applications unbounded-task-flow. As of now, we have about 20 page fragments that are implemented as bounded-task-flows. These fragments don't do much now, meaning there is only a single fragment in each bounded-task-flow. The issue I am having is trying to invoke a control flow navigation action from one of the fragments to load a different shell page.
    For Example, shellPage1.jspx contains fragment-flow-1 as a region. In my adfc-config.xml I have shellPage1.jspx and shellPage2.jspx, with control flow cases "toShell1" and "toShell2" respectively connecting the two pages. I have a link's action bound to the "toShell2" within the fragment that makes up fragment-flow-1. When the application is run, shellPage1.jspx and its fragment are displayed. But clicking on the link in the fragment ("toShell2") does absolutely nothing. It does not navigate me to the shellPage2.jspx as expected. What am I doing wrong here or do not understand?
    If the fragment is included as a JSP include, and not a bounded task flow include, everything works as expected. This is not desirable as we then need to copy the fragment's pageDef into the shellPage's pageDef to get the DataControls to function.
    If the faces-config.xml is used instead, and a JSF navigation case is used, it will also work as expected. This is not desirable because we really don't want to be mixing adcf-config and faces-config.
    So I am really stumped here.... Thanks in advance!

    Hi there:
    In your case, the adfc-config.xml has the control flow case between shell pages. And the task-flow-N.xml or your-task-flow.xml for each page fragment by default doesn't inherit control flow case from their containing shell page. In your case, in the page fragment task-flow.xml, you should add a "Parent Action" to flow to shell page2 for example. The outcome of "Parent Action" would be "toShell2" if calling from ShellPage1 page fragment.
    Is this 'Correct' or 'Helpful' for you? Please mark it as so if it does.
    Good luck,
    Alex

  • Bounded Task Flow

    Hi All,
    I am using JDeveloper 11.1.1.2 and I would like to create a Wizard interface. From reading various articles the best way to achieve this would be to create a Bounded Task Flow and represent this as a Train. Can anyone recommend a good tutorial to achieve this functionality?
    Also, I have a source page, and want to place a "create user" button - This would then launch a popup and launch my wizard in a popup - What is the 'best' way to launch a bounded taslk flow within a Popup?
    I will be upgrading to 11.1.1.3 so would appreciate ideas that will be forward compatible (I am having a few problems with popups and upgrading my 11.1.1.2 app at the moment!)

    Hi,
    in 11.1.1.3 you can launch a bounde d task flow that sues jspx pages from the task flow call activity. See sample #39 here:http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
    Frank

  • Where should backing bean for bounded-task-flow be declared?

    I have a bounded-task-flow that is used inside a dynamic region.
    I declared a managed bean to be used by activities (method/view) using the "backingBean" scope managed bean.
    There are two possible places that I can register the managed bean:
    1. adfc-config.xml
    2. the bounded-task-flow-definition.xml
    What are the differences between declaring the "backingBean" scope bean in "adfc-config.xml" and in the bounded-task-flow definition?
    What is the best practice for registering "backingBean" scope bean?
    If I understand correctly, registering the bean in adfc-config.xml is for one or more bounded-task-flow that use the same Bean class for instantiating their own backing bean. If the backing bean java class is only use by specific bounded-task-flow then it should make no difference to register the bean in either xml files.
    Am I correct?

    It should be registered within the bounded task flow for a couple reasons:
    1) Help maintain the encapsulation of the bounded task flow for reuse
    2) Managed bean definition metadata residing in adfc-config.xml or bootstrap configuration file will be preloaded when the ADF application is started. The actual managed beans will be instantiated the first time they are referenced. Therefore, to avoid the preload place them in the bounded task flow.
    thanks.

  • How to create a page-definition for bounded task-flow?

    I should be able to create a page definition which declare all bindings required for a bounded task flow.
    How do I do it in JDeveloper 11.1.1.2?
    How do I navigate to the page definition when I am in the bounded task flow "Diagram tab"?

    I found out the following:
    1. To create a page-definition file for a bounded task flow
    Right click on the "Default" activity (not a view activity) of the bounded task flow, select "Create Page Definition" from the context menu.
    2. To go the page-definition file for a bounded task flow
    Right click on the "Default" activity (not a view activity) of the bounded task flow, select "Go to Page Definition" from the context menu.
    My new question is:
    In JDeveloper 11.1.1.2, how do I create page-definition for a bounded-task-flow if all activities are view activities (page fragments) ?
    How does JDeveloper I want to create page-definition for the task-flow instead of create page-definition of the page fragment or the page?

  • How do I put music I have uploaded from a CD onto my iphone 5 via itunes? I have tried to drag and drop it onto my iphone when my phone is plugged into itunes this does not seem to be working.... Getting annoyed!!!

    I cant seem to get cd's that I have uploaded onto my iphone 5 via itunes. I have tried to highlight the items and drag and drop them into my phone but this isnt working...; This is really starting to frusterate me!!!
    Please help me

    If you have not already reverted the look and feel to be like iTunes 10 then
    View > Show Sidebar
    View > Show Statusbar
    click on the black arrow in the search box and untick Search Entire Library
    Now you should be able to drag and drop onto your phone or use the sync pages
    http://support.apple.com/kb/PH12113
    If your still having issues with your phone then Try this trouble shooting link
    http://support.apple.com/kb/TS1591

Maybe you are looking for

  • ITunes can't find music on my new computer, songs are 'unchecked' & won't play

    I had iTunes installed on my old computer, and had lots of playlists set up.  When I recently bought a new computer, I used an external hard drive to transfer all my music files to the new computer, and then I installed the latest version of iTunes o

  • Firefox profile cannot be loaded. It may be missing or inaccesible.

    I recently downloaded the recent Firefox 6.0 and when I try to access Firefox i get the error message: FIREFOX PROFILE CANNOT BE LOADED.IT MAY BE MISSING OR INACCESSIBLE. I have the Windows Vista operating system.

  • .prproj file extension missing in file association preferences Bridge

    I recently updated Bridge and lost my ability to open Premiere Pro projects from Bridge.  The prproj file would open in Media Encoder instead. I could however open the prproj file in Windows Explorer. The following is the fix to add prproj to file as

  • How do I fix error code 13014?

    Hello everyone, The other night I went to recharge my iPod classic and, while doing it, I pushed the middle button on it and a message popped up saying not to disconnect without first clicking the eject symbol (which I hadn't tried to do). Then it pr

  • How to improve macbook pro mid 2009

    i got Macbook pro mid 2009 with processor speed 2.26GH and memory 2GB and storage of 159GB. running maverick 10.9.4 Its slow and battery do not last more than hour. Any suggestions? is it worth upgrading it or buy new one.