TP4 / AF:REGION / What is the way to work with af:region and Backing Beans?

Hello,
I would be able to use the "af:region" component with a Backing Bean, but all examples I can found googling are with pageDef.
So, I have been trying with different classes the way to solve this problem and I arrive to this:
oracle.adf.controller.internal.binding.TaskFlowRegionModel
Some code:
task-flow-definition.xml
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <task-flow-definition id="taskDestinationA">
    <default-activity>destinationA</default-activity>
    <view id="destinationA">
      <page>/regionDestinationA.jsff</page>
    </view>
    <use-page-fragments/>
  </task-flow-definition>
</adfc-config>
adfc-config.xml
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
  <managed-bean>
    <managed-bean-name>backing_regionTest</managed-bean-name>
    <managed-bean-class>backing.RegionTest</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <!--oracle-jdev-comment:managed-bean-jsp-link:1regionTest.jspx-->
  </managed-bean>
</adfc-config>
regionTest.jspx
<?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:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=windows-1252"/>
<f:view>
<af:document binding="#{backing_regionTest.document1}" id="document1">
<af:form binding="#{backing_regionTest.form1}" id="form1">
    <af:region binding="#{backing_regionTest.region1}" id="region1"
               value="#{backing_regionTest.regionModel}"/>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_regionTest-->
</jsp:root>
RegionTest.java
import oracle.adf.controller.internal.binding.DCTaskFlowBinding;
import oracle.adf.controller.internal.binding.TaskFlowRegionModel;
import oracle.adf.view.rich.component.rich.RichDocument;
import oracle.adf.view.rich.component.rich.RichForm;
import oracle.adf.view.rich.component.rich.fragment.RichRegion;
import oracle.adf.view.rich.model.RegionModel;
public class RegionTest {
    private RichForm form1;
    private RichDocument document1;
    private RichRegion region1;
    private RegionModel regionModel;
    public RegionTest () {
        /*Here I try to put the same values as the constructor of TaskFlowId*/
        /*THERE IS NO DOCUMENTATION ANYWHERE :P*/
        DCTaskFlowBinding dctfb = TaskFlowRegionModel.getCurrentTaskFlowBinding("/WEB-INF/task-flow-definition.xml","taskDestinationA");
        //And here, dctfb is always NULL.
        /*I try removing the '.xml' extension of the name, but still not works*/
        //Fill the value of regionModel
        this.regionModel = new TaskFlowRegionModel(dctfb);
        /*Perhaps is better create a method to acquire the value,
          but I try in constructor first*/
    public void setForm1(RichForm form1) { this.form1 = form1; }
    public RichForm getForm1() { return form1; }
    public void setDocument1(RichDocument document1) { this.document1 = document1; }
    public RichDocument getDocument1() { return document1; }
    public void setRegion1(RichRegion region1) { this.region1 = region1; }
    public RichRegion getRegion1() { return region1; }
    public void setRegionModel(RegionModel regionModel) { this.regionModel = regionModel; }
    public RegionModel getRegionModel() { return regionModel; }
regionDestinationA.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">
<af:outputText value="Hello World!"/>
</jsp:root>So, my problem is in Backing Bean class (RegionTest.java). I don't know how I can acquire 'DCTaskFlowBinding' instance value; well, I don't know if that is the way to acquire the value of TaskFlowRegionModel, and even I don't know if this is the way to set the value of RegionModel. I don't know all of this because there isn't documentation yet :P
Some oracle-java-guru can help me, please?
JVN
PD: Environment: JDev TP4.

Hi,
your biggest problem is the use of internal classes that probably will change without further notice and lead to a broken application then
I don't think that the region model is supposed to work without ADF binding in this release. If you need a page region then the Trinidad region should be helpful (though it doesn't support you with navigation cases as the taskflow does)
I'l check internally if there is an option to do what you are trying to do. However, as mentioned, if you need to use internal classes then the answer probably is no.
Frank

Similar Messages

  • I want to Block iphone because he stole from me, what is the way to communicate with you, I have serial No.

    I want to Block my iphone because he stole from me, what is the way to communicate with you, I have serial No.

    Apple does not block phones. Call the police and your carrier. Change all your passwords. If you had find my iPhone enabled before the phone waa stolen, you may be able to track it, and erase the phone.

  • What are the Key Growth Drivers with both quantitative and qualitative analysis [geographical expansion, product, software development, resourcing, etc,]in SharePoint domain?

    What are the Key Growth Drivers with both quantitative and qualitative analysis [geographical expansion, product, software development, resourcing, etc,] in SharePoint domain

    Bravo. And your point is?

  • Will the airport extreme work with Iphone 4 and Ipod 3 gen without a pc or mac.

    will the airport extreme work with Iphone 4 and Ipod 3 gen without a pc or mac.

    You can setup an Airport device using the Apple Airport Utility for iPhone
    Download it for free in the App Store on your iPhone...
    It's under "Utilities" and the "Top Free" utilities.

  • HT1551 Atv3 doesnt want to finish installing update although ive tried several times, now the remote wont work with it either and when I press the remote the light on the box flashes several times, I unplugged everything but nothing works and I cant reset

    my Atv3 is due for an update and ive tried several times to install it but although it downloads it never finishes installing and tells me that it wasnt possible to update and to try another time. I try every other day and it only inches forward in the progress but it never completes the installation. I was tired of waiting and I decided to keep on trying in a period of time one night until it would finally install, that never happened and Im not sure what is going on but the remote stopped working with the atv3 and when I press a button the box light flashes several times but does nothing, ive disconnected it and left it that way for over 24 hrs, ive disconnected everything (tv, internet etc) and nothing. I cant reset the atv3 through the remote either...i dont know what else to do

    Hi Brian,
    Thanks restoring and restarting didn't fix my problem - i have started it fresh and still it doesn't work. Basically I press ONCE on the remote, after the machine has not had any commands for 10 minutes, and the cursor skips from one end of the menu to the other - so I can't choose network or update software etc - I sometimes manage to stop it randomly in the middle of the menu if I press on a command in the middle of the cursor skipping all the menu steps...not sure what the problem is but I have basically not used my brand new apple tv since I bought it for that reason! I should call Apple support I suppose! grrrr hate wasting time with stuff like this!
    Thanks for your help though!
    Pernille

  • Difference between the way of login with ip address and SAProuter when checkin original file

    Hi, experts
    We found out:
    ① Login with ip address, check in a file with file name less than 22 Chinese character, OK.
    ② Login with ip address, check in a file with file name more than 22 Chinese character, error message 26253 appeares: Error while checking in and storing: &
    ③ Login with SAProuter, check in a file with file name more than 22 Chinese character, OK.
    What casues error in condition ②? The only difference between ② and ③ is the way of logining to SAP system.
    Best Regards
    Yemi

    Hi Yemi,
    based on your description I would kindly ask you to check the application log transaction SLG1 after getting the error message with your userID. Here normally further background information is listed that might help to get a hint what is going wrong.
    Best regards,
    Christoph

  • Advice needed: The way to solve out of memory problem (or the way to work with big csv files)

    Hello:)
    I'm in trouble: I have a big csv file (over 5gb of web-analytics data) and my 64 bit excel (and 6gb ram)
    I cant load file to data model because of it's size. There is an error "out of memory" in power query. 
    This is the first time when I encountered such a problem.
    What options do I have to work with such a file? To increase memory in my computer? Would it solve the problem? How much do I need to work with 6gb csv? 
    Or may be I can upload my data somewhere to azure and work with it there? 
    So the problem - is there any way to deal with big files using power query? Or I need to become a developer and learn sql or other languages? 
    Thanks in advance.
    Max

    Hi Miguel!
    Thanks for your answer. 
    I've tried to load this file on virtual pc from azure cloud with this config:
    I have increased memory limit in power query settings:
    And still, the proble is the same:
    What I do wrong? 

  • What are the downsides to working with Proxy Media?

    My iMac is one of the more powerful ones:  i7, 2 internal drives (the main one is a 256 GB flash drive), ATI Radeon HD 5750 w/1 GB VRAM, 16 GB RAM.  But I notice that when I'm trying to apply multiple effects to a compound clip and then use crop to zoom on it, it starts dropping frames all over the place and barely plowing through.
    I'm wondering if I should edit with proxy media.  I know one disadvantage is the amount of space it takes to have both proxy and regular media, but I have plenty of disk space.  I edit AVCHD footage that I optimize upon import.
    I will also be doing a lot of multicam editing.
    So I'm thinking proxy media is the way to go.  But I have to wonder what the disadvantages to using proxy media are.  For instance, since you're editing with a lower-quality version of the video, does that mean that when you do things like color correction you aren't getting a good a final result when you switch back to the regular media?
    I'd appreciate any advice/tips.

    JDLee wrote:
    ....  you aren't getting a good a final result when you switch back to the regular media?
    no, the color correction is done with the 'HDef' material.
    proxies is just a pre-view thing; esp. when doing multicam, the amount of data shoveling from/to harddrive is enormously ... theoretically, even a fw800 connected super-fast Raid can handle only a max. of 10 HDef streams ...
    I'm on consumer/hobbyist level - handling here 4 streams from usb-drives - as proxies, no problem.
    when editing is done, you switch back to original/optimized and export in  shiny 100% ...

  • Best way to work with FCP files and Adobe Premiere

    Hi,
    I have a bit of a technical problem. I'm editing a doco for broadcast on TV and have shot on HDV and downloaded onto our system as PAL, Apple Pro Res 422, 25 fps. oowever, Our graphics editor is on Adobe Premiere CS4.
    What is the best way to get it onto her system and back off again and onto ours, with the mimimum or no loss of quality?
    I've heard that an XML might work, but will it work on Adobe CS4? I don't know how this will pan out if it's XML. Will we be able to open it all back up in FCP when she hands it back. What sort of file do we get back from the Adobe Prem Pro Cs4 system?
    I'm a bit nervous about it all.
    Hope you can help.
    Cheers,
    Margie

    This got me curious Eagleray as I do this all the time within my Mac FCS to CS all the time. But to a PC got me a googlin. Hope this discussion _http://www.animotion.nl/en/tutorials/fcp-xml-premiere-pro-cs5/_ helps as quite a few students seem to have Macs at school and PCs at home. Also do be aware of the different formatting of some PC drives like FAT16, FAT32, NTFS vs the Mac GUID. The Mac can read them all with the proper system addons/drivers, they show up in System Preferences Preference Panes under "OTHER". I use NTFS-3G to mount NTFS PC drives. I think it was free, if not there is another one I used to use that is free from some open source NTFS group. FAT has the size limit issue of I think 2 or 4gb (you can't copy anything bigger than that at one time to a Mac from a FAT drive). I'm on Snow Leopard on my 8core. My partner who edits in PP CS3 on a PC brought over his Maxtor USB the other day for me to copy some video files from and it's been having problems mounting, I believe since I upped to SL. I threw it on my 6 year old PowerBook G4 running 10.5.8 and it mounted right away. Just another weird gotcha. But take a quick look, tho the title says CS5 in it, a few students were using CS4 on a PC.
    Message was edited by: TimeKoder13
    Message was edited by: TimeKoder13

  • What are the differences between acquisitions with Group shares and direct

    Dear all,
    I am new in consolidation of investments.
    Example illustrated from SAP help directory showed that the amount of goodwill arises from acquisition with direct shares will be more, Why?
    In what circumstances acquisitions with direct share is used instead of Group share?
    Thanks.
    Regards,
    Renee

    Hi Renee,
    What seems to me is its due the treatment as per different GAAPs. Some of the GAAP require direct share and others group share for calculation og GW. If you only consider the direct share then the GW is calculated only as per that share. However if you consider the group share then the calculation of GW will be based on the total holding in the group. In the example given probably the immediate parent company is not held 100% withing the group. That means the GW of the subsidiary will be diff based on the fact whether you are looking at direct share (share of imme. parent in the subs) or grp share (share of imme. parent in the subs*share of grp in the parent).
    Hope it helps a bit.
    Regards

  • What are the applications that work with time machine on lion?

    I cannot use time machine on:
    iCal
    iPhoto
    I am at a loss here. pretty sure before i could go into iphoto in the "past" and look at a picture i might have erase from before. not anymore, same with ical.

    If it's iPhoto 9.1.5 it changed with Lion:
    http://support.apple.com/kb/HT4754
    Regards,
    Colin R.

  • Does the time capsule work with a pc and a mac?

    I need to know whether or not I can save pc and mac files at the same time, on a time capsule.

    Yes, you can.
    (68758)

  • What is the way to buy the other licenses?

    Hi, yesterday our Studio had buy creative cloud for teams, today the paymant was  completed but  i can't buy other licens for the teams members. We have 3 computers, and bought the admin account, so we need other 2 licenses. When i tray to buy it from the admin account on adobe.com, it says "contact your region's number to buy other licenses". What is the way to buy the other licenses?

    I have the same problem! I had try to contact Adobe by phone without answer for more more and more time!!! It's incredible!!! They are not answer to the phone!!!

  • What is the best way to work with Word documents in The InDesign CS4???

    I work in Microsoft Word 2007 and all my documents have *.doc format.
    What is the best way to work with Word documents in InDesign CS4???
    David Blatner says to avoid copying and pasting text from Word instead of placing it (Ctrl+D).
    How about pasting RTF or Text Document???
    I want to make book's layout in ID CS4 and its main feature is that there is the left page with text and the right - with graphics.
    So, as I understand to place the text on each page I must create for example 70 Word documents and place each item on 70 left pages???
    It loks like wasting time. I sthere another way of making such layout???  What kind????

    It's best to place any text.
    You can have all of your text in one file and use auto-flow to add threaded text frames and pages as required (Hold down the Shift key when you click the loaded text cursor), but it's a little non-standard to have the thread only on one side of the spread from the auto-flow perspective, so you'll have to set up properly.
    This is one case where a master text frame will work to your advantage. On your master page spread, add a text frame to the left page, but not to the right (or at least not threaded to one on the right -- for some other project you might actually want two independent text threads). Hold the loaded cursor over a frame on the left side of a document page and auto-flow. ID will add new spreads as necessary, but only put the text on the left side.
    Peter

  • The old calender iOS6, in the year view, it shows how much busy I am in a day by indicating the color intensity. But the new calendar year view is totally useless!!! also too bright!! Why apple does this?? What is the way to revert the calendar back???

    The old calender iOS6, in the year view, it shows how much busy I am in a day by indicating the color intensity. But the new calendar year view is totally useless!!! also too bright!! Why apple does this?? What is the way to revert the calendar back???

    Unfortunately, that's the way the cookie crumbles nowadays. Sir Jony Ive's GUI design for iOS7 has been met with much skepticism (to say the least). But until the company sees the compelling need for an adjustment or reversal, it "ain't happenin' ". So amble over to the feedback page ( http://www.apple.com/feedback/ ) and make your displeasure known to the company, OR make it known by not purchasing its products. Because as long as the iGadgets continue selling as fast as they can make them, they will see no need for change.
    BTW, do note you are NOT talking to Apple here. This is just a user-to-user forum.
    Edit: for now, you can also try out any of the alternate calendaring apps available in the App Store.

Maybe you are looking for

  • HP Laserjet 5si 79 (0015) / Line=536

    Our HP Laserjet 5si is old, but still works well. In the past couple of weeks we have been getting a random error Line=536,  79 (0015).  We haven't had any changes to software of PC's in the office, so I don't know why this is occuring now.  Any thou

  • How do I know if formhistory.sqlite on firefox 3.6.8 is corrupt?

    Ever since I updated to 3.6.8 (Wiindows XP), Firefox looses form history on restart, even though all settings are for it to retain and there is no such setup on my antivirus. I tried support chat and agent zzxc suggested that perhaps my formhistory.s

  • H:outputText not display carrige returns

    I have a outputText tag <h:outputText value="#{displayParts.marketingDesc}" styleClass="marketingText" /> in a jsp page that is not displaying what is in the database I'm connected to. When the page is renedered I'm expecting the outputText to look l

  • How to pass field symbol as parameter to a method

    Hi, I have a field symbol of type table,also i have a method with parameter (say vbeln), i need to pass the range value in <fs> as the parametrs to the method., How can I acheive this, A code snippet eill help me a lot., Thank you. Arjun.G

  • IDCS3- Importing Word Body Text: Best Approach?

    Hi all, first post here. Am relatively new to the wonders of InDesign in my new occupation, and during the current quiet period have decided to look at some areas of our DTP department and how our lives could be made easier. Currently we receive the