How to create ADF region without Task Flow

I want to divide my page into different regions, but I don't want to have any bounded task flow under each region. I want to include Page Fragment inside the Region.
I find the example of creating Region using some page flow, would you please help me, how to create Region that contains only page fragment, actually the problem I am facing, I don't know what I will provide in value attribute in Region tag, that is expecting some Region Model.

Hello, RajeshBiswas.
A solution could be to generate 'MultiTaskFlow' for indeterminate number of regions or multiple regions on the same page.
It would be necessary to create a single file to define all participating 'TaskFlows' on page:
1. Select 'new -> ADF Task Flow (JSF/Facelets)'
2. May include all 'jsff' files as:
<task-flow-definition id="genericTaskFlow1">
    <default-activity>case1</default-activity>
    <view id="case1">
      <page>/pages/case1.jsff</page>
    </view>
    <use-page-fragments/>
  </task-flow-definition>
  <task-flow-definition id="genericTaskFlow2">
    <default-activity>case2</default-activity>
    <view id="case2">
      <page>/pages/case2.jsff</page>
    </view>
    <use-page-fragments/>
  </task-flow-definition>
It should create a Managed Bean to implement the List of Task Flow Bindings:
1. Create a new Class with de following code:
    private List<TaskFlowBindingAttributes> mTaskFlowBindingAttrs = new ArrayList<TaskFlowBindingAttributes>();
    public MultiRegionBean()
        TaskFlowBindingAttributes tfAttr = new TaskFlowBindingAttributes();
        tfAttr.setId("region1");
        tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow1"));
        mTaskFlowBindingAttrs.add(tfAttr);
        tfAttr = new TaskFlowBindingAttributes();
        tfAttr.setId("region2");
        tfAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/.../ADFTaskFlow.xml", "genericTaskFlow2"));
        mTaskFlowBindingAttrs.add(tfAttr);
    public List<TaskFlowBindingAttributes> getTaskFlowList()
        return mTaskFlowBindingAttrs;
2. Define this new class into the 'adf-config.xml' file as Managed Bean with 'pageFlow' scope.
  <managed-bean id="__1">
    <managed-bean-name>managedBeanName</managed-bean-name>
    <managed-bean-class>className</managed-bean-class>
    <managed-bean-scope>pageFlow</managed-bean-scope>
  </managed-bean>
At the page definition, add a MultiTaskFlow inside <executables> tag:
    <multiTaskFlow id="multiTaskFlow1" taskFlowList="#{pageFlowScope.multiRegionBean.taskFlowList}"
On the page, insert regions in the desired locations. For example:
    <af:group id="g2">
        <af:panelAccordion id="pa1" inlineStyle="width:50%; height:400px;">
                <af:showDetailItem text="showDetailItem 1" id="sdi1">
                <af:region id="r1" value="#{bindings.multiTaskFlow1.taskFlowBindingList[0].regionModel}" >
                </af:region>
                </af:showDetailItem>
        </af:panelAccordion>
        <af:panelAccordion id="pa2" inlineStyle="width:50%;">
                <af:showDetailItem text="showDetailItem 1" id="sdi2">
                <af:region id="r2" value="#{bindings.multiTaskFlow1.taskFlowBindingList[1].regionModel}" >
                </af:region>
                </af:showDetailItem>
        </af:panelAccordion>
    </af:group>
Reference: 21.10 Configuring a Page To Render an Unknown Number of Regions

Similar Messages

  • How to create a Region without Task Flow

    I want to create a Region without creating bounded task flow.
    I need to divide my page into some Regions, and I want to have Page Fragments under each region.
    I created one Region but not able to understand what I need to give as value attribute
    <af:region value="">
    I am confused what is needed as value attribute, it is required as RegionModel, would you please help me regarding this?

    Hi,
    Instead of using region, try using <af:declarativeComponent> for this.
    Refer below-
    https://blogs.oracle.com/jheadstart/entry/avoid_use_of_jspinclude_where
    Thanks,
    Ansh

  • UI Shell - how to allow ADF Library Bounded Task Flow to close itself

    Hi Richard
    Further to my other post, we're having lots of fun with the UI Shell, it's making mockups very easy.
    Question for you though based around the functionality defined in the UI Shell whitepaper. Say we've created our UI Shell application, and rather than wanting to create the bounded task flows in the app (ie.first, second, third), we create them as standalone bounded task flows deployed to ADF Libraries, and imported into our app separately.
    In the UI Shell examples bounded task flows are opened & closed via the UI Shell's own components (say the navigation page items or toolbar buttons), that call the methods in the Launcher bean (_launchActivity & closeCurrentActivity). It's fairly simple to rewrite the launcher helper methods in the launcher bean to call an imported ADF Library bounded task flow to open it as an activity, just referencing the correct task-flow.xml file.
    However as you know a bounded task flow has a "Default Activity" entry point and one or more "Task Flow Return" exit points. What I haven't been able to work out is how when the bounded task flow exits via a task flow return, can we call the closeCurrentActivity method in the Launcher bean? The UI Shell code examples demonstrate closing a bounded task flow by menu options/or similar outside the bounded task flow in the UI Shell, but it would seem reasonable if the bounded task flow exited via a "Task Flow Return" we should be also able to close the activity tab too.
    (....and as extension, before we even do that potentially call the checkState/isDirty() method to stop the user closing the activity too, but again driven by the bounded task flow attempting to exit).
    I could imagine inserting code into the bounded task flow finalizer to close the activity tab, but this pushes the UI Shell tab activity management logic into our standalone ADF Library bounded task flows which isn't ideal, especially if we want to later reuse them in another app which doesn't use the UI Shell.
    Any suggestions welcome.
    Thanks & regards,
    CM.

    And we're back again.... what's a couple months between friends?
    So it turns out after testing our app (d@mn, so close) that we've hit a bug with this approach.
    Our current app allows one BTF to be open in the UI Shell at any one time. Our menu options automatically open one BTF at a time by the user (max one open), and close the previous BTF. However we have some "special" BTFs that require the user to explicitly close the BTF, which in turn makes use of the regionNavigationListener solution I described earlier in this post.
    However we discovered a bug when we do a complete cycle of the 15 embedded regions within the UI Shell.
    Say we:
    1) Open a normal BTF in region 0
    2) Open another normal BTF in region 1 (our solution automatically closes the previous BTF)
    3) We then open another BTF (again the previous BTF is closed) in region 2, yet this a "special" BTF requiring the user explicitly to close it. Upon the user closing the BTF - this results in the regionNavigationListener being called and the removeTab() method called to close down the BTF in the UI Shell
    4) The user then open/closes multiple normal BTFs, one by one, rotating through regions 3, 4, 5 .... eventually back to 1 again
    5) Then the bug occurs - on opening any BTF back in region 2 (as part of the complete cycle of all regions), the tab for the region 2 opens, correct title, and via debugging the Tab.class has all the right settings including taskFlowId, but the tab is incorrectly empty
    doh!
    I've managed to track a symptom of the problem down that may explain what's happening.
    Each time a tab is rendered with a BTF, the Tab classes getBinding() method returns a reference to the binding required for the current BTF. However for some reason on the complete cycle, for "r2" it returns the binding for the previously user-closed BTF from step 3 above, even though we called the TabContext.removeTab() method.
    What I haven't been able to work out is how the bindings get turned on/off dynamically for each BTF being invoked. Presumably for some reason on step 3, the BTF's bindings aren't being correctly removed from r2 even though we called TabContext.removeTab().
    If anybody has any brain waves about what's going on and how to fix this problem, your help appreciated.
    Regards,
    CM.

  • ADF Regions and Task Flows

    Hi,
    I'm attempting to create a search bar, that would be added to all of my pages in my application.
    I have created a fragment that has a comboBox, a text field, and a commandButton. These three things make up my search bar. Then I added the fragment to its own bounded task flow. I then added the task flow to one of my jspx's as a region.
    Ideally, I'd like to do that on every page.
    When the search commandButton is pressed on any page, I would like the user to be redirected to a 'search results' page (that is not a fragment). With the value selected in the choice list, and the value entered in the input Text, I would like to call an executeWithParams before entering the 'searchResults' page.
    I'm wondering how I would do this with task flows, considering I have my searchBar in a boundedTaskFlow, and my other pages are not. There is no 'call' to my Search Bar bounded task flow, it is just a region on all the pages.
    What can I do to navigate from my search Bar (in a region on all pages) to my search result page?
    Any help or guidance will be appreciated.
    Thanks,
    Joel

    That's a good point.
    I oversimplified my original explanation. I don't need the search bar in all pages, but many pages.
    I went back and forth between A) making multiple templates, or B) creating a facet for the search bar in my current template, where pages that use it can place the search bar fragment/bounded task flow.
    I was trying to go with option B.
    Which option is easiest/best?
    Thanks,
    Joel

  • How to create tabbed region without Extjs

    Hi,
    I have a Form region with lots of attributes coming from a single table that is the source of the region.
    Is it possible to create a form that has all this attributes sorted into tabs?
    Regards, Tamas
    Edited by: Tamas Szecsy on May 20, 2011 9:39 AM

    Here.
    http://shijesh.wordpress.com/2010/04/04/jquery-tab-in-apex-3/
    do not incldue these lines in aped 4
    <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/redmond/jquery-ui.css" type="text/css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>Regards,
    Shijesh

  • How to create new view without interlinking with gantt chart or resource views

    ok clear
    one another question
       In msp how to create new view without interlinking with gantt chart or resource views

    Hi Shiv PMC--
    I splitted your question above in another thread in order not to have  a huge thread with many topics in it.
    That being said, I'm not sure to understand. A view is just a manner to display MS Project data with columns. A view can have a table with column (left part) associated with a Gantt chart. It can also just contain a table with no Gantt chart (like the task
    table) or a table with a timephased grid (resource and task usage).
    Please give us more information, maybe with a concrete example so we can help you.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to create a region which should float in a page . (Like as windows cal)

    Hello Friends
    Using
    Apex Version 4 +.
    Oracle database 11g.
    How to create a region which should float in a page .
    ie i can move that region inside that page anywhere like as windows calculator.
    Can anyone please help me.
    Thanks in advance
    regards
    Edited by: A on Apr 13, 2011 1:48 AM
    Edited by: A on Apr 13, 2011 1:48 AM

    Hi,
    You can use a jQuery dialog.
    http://docs.jquery.com/UI/Dialog
    e.g. create html region, just say you give the region static id: floating-region, make it hidden by adding attributes: style="display: none;"then do like: $('#floating-region).dialog();
    I made another post on steps to create a dialog. See: {message:id=9506160}
    Ta,
    Trent

  • How to create an account without a credit card

    Does anyone know how to create an account without using a credit card?

    Yes.  Follow the instructions in this Apple support document.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    B-rock

  • How to create own interface without .cpp file?

    how to create own interface without using .cpp file ? To access the method inside the interface .
    e.g.  ILayoutTarget.
      Should not be SDKFileHelper.h because they are using SDKFileHelper.cpp file

    Rathan,
    PLz chk the below link (PDF file)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79?quicklink=index&overridelayout=true
    Mutti

  • How to Create adf table from java bean

    Hi,
    How to Create adf table from java class (Not from ADF BC).
    Thanks
    Satya

    @vlsn -- you have to follow what shay said.
    Do the following in Model layer ::
    create a table property java class with your columns setters and getters like :
    *public class gridProps {*
    private int sno;
    private String orderNum;
    *public void setSno(int sno) {*
    this.sno = sno;
    *public int getSno() {*
    return sno;
    *public void setOrderNum(String orderNum) {*
    this.orderNum = orderNum;
    *public String getOrderNum() {*
    return orderNum;
    Create another table java class which will populate the values to your column values and return the collection :
    *public class gridPopulate {*
    private  List<gridProps> gridValues ;
    *public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
    *if (valuesToSet == null) {*
    return gridValues;
    gridValues = new ArrayList<gridProps>();
    if(btnValue.equals("completeBtn"))
    return gridValues;
    for(ArrayList<String> tempArr:valuesToSet)
    gridProps gp = new gridProps();
    gp.setSno(Integer.valueOf(tempArr.get(0)));
    gp.setOrderNum(tempArr.get(1));
    return gridValues;
    Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
    Thanks.(My jdev version 11.1.1.5.0)

  • How to create table control without wizard....???

    Hello experts !!
    Plz tell me how to create table control without wizard.
    for sflight table.
    Scenario 1
    I have one screen like 1000.
    There i have taken carrid, connid, fldate as criteria.
    Now i want to display Planetype, Price, Seatsmax in the table control.
    Scenario 2
    i have two screens 1001, 1002.
    in the screen 1001 i have taken carrid, connid, fldate as criteria and there is a Button.
    when i will click the button it will show the price, planetype and seatsmax in the table control in the next screen, i.e 1002
    plz help me out...
    and how to save new record in the dictionary table from that table control....

    Hi
    see the sample programs and design accordingly
    syntax:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
    Go through this urls.
    www.****************
    www.sap-img.com
    Check the below links.
    just refer to the link below
    http://www.sapmaterial.com/tablecontrol_sap.html
    step by step procedure with screen shots
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://sap.niraj.tripod.com/id25.html
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    Regards
    Anji

  • HT2731 How to create apple ID without providing my credit card info.?

    How to create apple ID without providing my credit card info.?

    Actually... this is not true, or at least I had no "None" button to choose from. I only need this device (iPhone) because of my job and have no intentions on purchasing anything from apple, now or in the future. Is there a way to go in and disassociate\remove my CC info Apple systems. How does a company get away with demanding CC info "incase" you decide to buy something later, I don't get it... why not just demand to hold everything I own until I need to use it?
    Here is the link mentioned above.
    http://support.apple.com/kb/HT2534

  • How to create apple id without creadit card

    How to create aplle id without creadit card???

    Follow the instructions on this page when creating a new account : http://support.apple.com/kb/HT2534
    e.g. if using a computer's iTunes : https://discussions.apple.com/message/24321860
    if using an iPhone : https://discussions.apple.com/message/24700173

  • HT2589 any1 can me assist me how to create APPLE ID without providing credit card details

    any1 can me assist me how to create APPLE ID without providing credit card details

    A simple search finds:
    Creating an iTunes Store account without credit card - Support - Apple

  • How to create Oracle Alert without metioning the email address in To Field

    Hi,
    I just wanna know that how to create Oracle Alert without metioning the email address in To Field.
    Please help thanks.

    If you don't enter anything in the email field, the alert email won't go out.
    If you just want to test or if you plan to use the history, you can put a non-existant email there.
    The alert will fire anyway.
    Hope this helps,
    Sandeep Gandhi

Maybe you are looking for

  • Using BAPI_SALESORDER_CREATEFROMDAT2

    Hi! I would like to ask if anyone has sample code of a working call to the bapi BAPI_SALESORDER_CREATEFROMDAT2? I've tried it and I've been able to create a sales order, however I have troubles with repeating items in Conditions. Tried changing LOGIC

  • LR 1.4.1 not saving print settings on Mac OS 10.5.2

    1.4.1 won't save (or use) any print settings other than "Standard". In the print module if I select print settings, choose a printer and it's settings (like paper type and color management) then close the dialog the settings aren't saved or even used

  • What's with the whacky reordering when I move articles in Folio builder?

    I move one thing and everything goes crazy; then I spend the next hour straightening out the mess.

  • Problems reading earlier database

    The server I have been running a Perl script on has recently upgraded the version of Perl they are using from 5.8 to 5.10. My script uses the perl DB_File module to write some Berkeley DB databases and I now find that I can't read these databases. I

  • SolidWorks and large assembly

    I am having problems with making a PDF of a not small assembly. I have an assembly of about 50 parts and try to make a 3D PDF and it looks like it works, but when you open it, it is all messed up, the parts are in wrong places, some parts are just co