Is it possible to add a JSFF to a page programmatically without Task Flows?

My use case is this: My application does not use task flows. If a value returned from the database is 0, I am creating a UIComponent and adding it to a PanelGroup on a page. If the value returned is 1, I need a way to programatically add a JSFF to the page. So, that means I cannot define the JSFF on the page with a <jsp:include... />.
The closest solution I have found so far is to use af:declarativeComponent, but when attempting to create this component via the ADF Faces API, I find that there is a method for getViewId, but not for setViewId, meaning I cannot add the JSFF to the declarativeComponent and in turn add the DC to the PanelGroup.
Thanks.

Frank,
I stand corrected on utilizing a Task Flow. After some learning on my end, Task Flows and Regions appear to be a solution for my requirement.
I created a dynamic task flow (jsff), dropped it on the jspx page to create a region and it executed successfully.
Now that I know drag and drop works for this task flow, I am attempting to add the region to the page at runtime. Here is the code I am using:
private void ProcessEmailUpdateFragment(String id, FlexContent fc) {
RichRegion rr = new RichRegion();
// this is the tag created via drag and drop: <af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"/>
FacesContext facesContext = FacesContext.getCurrentInstance();
ExpressionFactory elFactory = facesContext.getApplication().getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp = elFactory.createValueExpression(elContext, "#{bindings.taskflowdefinition1.regionModel}", Object.class);
RegionModel model = (RegionModel)valueExp.getValue(elContext);
rr.setRegionModel(model);
rr.setId("r" + id);
rr.setValue(model);
FlexUIContainer.add(rr);
}Here is the error I am receiving:
<UIXRegion> <getRegionModel>
java.lang.IllegalStateException: The "value" attribute on a region component with id "r0" was null or not specified thus its RegionModel is null. Now using an empty RegionModel instead.
     at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:455)
     at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:682)
     at oracle.adf.view.rich.component.fragment.UIXRegion.encodeBegin(UIXRegion.java:279)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)I do not see any references to this error anywhere online and was hoping you could provide a bit of guidance. Initially, I only was setting the RichRegion Id and RegionModel, then when I received the above error, I set the Value, with no change.
Thanks,
MattC
UPDATE: The reason for the error is that the model object is null...looking into it now.
Edited by: MattC on Jan 17, 2012 5:27 PM
UPDATE: Copy/paste error. EL needed to be #{bindings.dynamicRegion1.regionModel}, not #{bindings.taskflowdefinition1.regionModel} (copied from example). Now I have encountered an additional error, which I believe may reveal I have reached a dead end:
<PropertyKey> <saveValue> Unserializable value:oracle.adf.controller.internal.binding.DCTaskFlowBinding$InnerTaskFlowRegionModel@3694d537 for key:UINodePropertyKey[value,14]In this post from 3 years back, you wrote that a use case that resulted in this same error was not supported: insert a region programatically
It appears this may still the case. Either way, I was hoping you would provide additional insight.
Thanks.
Edited by: MattC on Jan 17, 2012 5:49 PM
I am running JDev 11.1.1.5
Edited by: MattC on Jan 18, 2012 9:05 AM

Similar Messages

  • Is it possible to add high resolution photos to an ipad2 without synchronising it?

    Hi,
    I'm looking in to offering potential clients an ipad with all their wedding photos pre loaded, but is it possible to add photos without synchronising each ipad to my mac? When I first got my ipad2, I couldn't use it for anything until I had connnected and registered it with Apple........I have got the camera connection kit, but haven't found a workaround for adding photos without synchronising yet?
    I haven't been able to find much info on the subject so far? There must be a workaround?
    Cheers,
    MacSlates

    The first thing that currently needs to be done with a new iPad is to activate it by connecting it to a computer that is running iTunes - it can't currently be used 'properly' until after that is done. After iOS 5 is released and is pre-installed on iPads then I think that should change and you will no longer need to first connect to a computer.
    The camera connection kit can be used to add high-resolution photos to the iPad, unlike syncing via iTunes where the photos get 'optimised' by the transfer process. If adding the photos to the SD card yourself then you need to create a DCIM directory off the root of the card with the photos underneath it, and the photo filenames need to be exactly 8 characters long (no spaces) plus the file extension i.e. in a similar format as if a camera had created/written them
    Otherwise there are third-party apps such as Simple Transfer which can copy photos to/from the iPad from your computer via your wifi network. But photos transferred this way will only go into the Saved Photos/Camera Roll album in the Photos app, not into a 'proper' album - and until iOS 5 is released and installed you won't be able to move the photos between albums on the iPad : from http://www.apple.com/ios/ios5/features.html#photos :
    Even organize your photos in albums - right on your device
    Also a problem with syncing photos to the iPad via iTunes is that they then need to be on the other person's computer when they then connect to it - otherwise the photos are likely to be removed from the device. Photos copied via the connection kit or copied via third-party apps shouldn't have that problem.

  • Is it possible to add things to an iPad or iPhone without the use of iTunes?

    My intention is travelling abroad for a year or two, and I don't want to take a laptop because it is too big and heavy.  I have my iPhone, but I'm trying to decide if an iPad would be useful too.  The problem is - because I wont have a computer with me, I wont have iTunes to add books/movies/music to either device.  Is it possible to add stuff from any computer, and not a computer where my iTunes is set up?  If the computer that I use (belonging to someone else) has iTunes on it, will my iPhone/iPad automatically try to connect and sync with that? 
    Thanks
    Karyn

    You can purchase and download content directly onto the device from the iTunes and App stores already on it.
    You can use cloud storage (iCloud for apps that support it, or dropbox, box.net. google drive, sugarsync, 4share, etc) to move files to and from individual apps (things like pdfs, your own notes and so on).
    You only need iTunes to backup really (although that is a very vital thing to do regularly, with any device)
    However, to use a given store, you must have payment information and a billing address in that country associated with your AppleID.  You cannot shop in a country foreign to your payment and billing address information.  And your home store may very well be blocked (by IP address) when attempting to access it from a foreign location.

  • Possible to add apps from two different itunes accounts?

    So my family just purchased an iPad and I was wondering if it was possible to add apps from two different user accounts without paying for them twice? My dad synced it up with his computer so all the apps from his iphone were transfered. I noticed that in the app store for the ipad you can switch between different accounts. If I switched to my username would it allow me to add apps that I've already purchased through my iphone or will I have to pay twice?

    Yes. My grandson did that to me and I had a heck of a time upgrading the apps he loaded because I didn't have his password. I ended up deleting them.

  • Is this possible to display standard JSR-286 data in ADF Task Flow WCP Page

    Below is my scenario,
    I have one Webcenter page. Portlet-A (standard JSR-286 based portlet) consumed from WSRP Registration process and Taskflow-B ( with Fragments ) consumed as region from ADF library jar.
    On the submit of an Drop down menu/submit button in Portlet-A , I want display selected data in Taskflow-B.
    Please help me out.

    Hi Yannick,
    Thanks a lot for the information. It worked.
    The portlet data can be accessible using bindings, but parameter name can be different.
    Meanwhile I have got one more scenario, where the Portlet and Task Flow placed in different pages of WCP Application. On change of data in the Portlet the application should navigate to another page where the Task Flow placed and displays selected data.
    Basically I can not use any button for navigation. The navigation should happen once I do some action in Portlet.
    Is this possible? If yes can you please let me know the steps?
    Thanks in advance!
    Somnath
    Edited by: Somnath Basak on Dec 20, 2011 9:41 AM

  • How to add many bounded task flow just on one only .jspx page?

    Dear all
    I will explain you what I do and What I want to do.
    I created one jsf page template called "baseTemplate". It contains only one panelSpliter with horizontal layout . In the first face I created 10 commandLinks as a menu. the second facet contains the facet ref.
    My task is now to create 10 task flows.
    What i do is:
    1- create bounded task flow name it "taskFlow1" and add all the views and page navigations that I want.
    2- double click the views and create them as page fragment and design the layout.
    3- create .jspx page name "task1.jpx" based on "baseTemplate".
    4- dragging and dropping "taskFlow1" into "task1.jspx" as a region
    5- repeating steps from 1 to 4 with "task2.jspx" till "task10.jspx"
    in this way i created 10 "jspx" pages for each task flow
    What i want to do is:
    I want to create just one and only one ".jspx" page and drag all task flows on it. And when clicking on any command link from the menu , the corresponding task flow is invoke.
    Is this a way to do this.
    Thank you in advance.

    of course, there is.simply in the unbounded Task flow drag your task flow as task flow call and specify the outcome, and make the action of your command link
    the outcome you specify, of course you will navigate to the default activity of the bounded task flow also you could open your task flow as lightweight dialog
    as frank do in his example

  • Is it possible to add markups to a PDF that I am not the author of

    Most of the PDFs I generate are from other applications (like Autocad) where I "print to PDF" to create the file.   Most of the PDFs I recevie are generated the same way.   Prior to Acrobat Reader 8, it was simple for me and my collueges to exchange information on these PDFs by using markup tools and resending them with markups.   Since Acrobat 8 has come along, I now find it impossible to markup a drawing (no matter if I have created it using Print to PDF or if someone has sent it to me).  I went to the knowledge base and see that the drawing has to be enabled for markup in one of 2 ways
    In an open PDF, choose Comments > Enable For Commenting In Adobe Reader, and then save the PDF.  
    Start the wizard to initiate a shared review or an email-based review and follow the on-screen instructions. When you’re finished, commenting is enabled in the PDF that you specify for the review. 
    Well, there is no Comments selection in my toolbar.   Second method is given by
    Quickstart: Start an email review
    An email-based review lets you track review status and merge received comments into the PDF.
    Click Review & Comment and choose Attach For Email Review.
    If prompted, enter your identity information to create a reviewer profile.
    Follow the on-screen instructions to select the PDF, invite reviewers, and send the email invitation.
      If your email application doesn’t send email automatically, you may need to answer alert messages and switch to your email application to finish sending the message
    But there is no Review & Comment button to click.
    So, can someone tell me, can I still do a simple markup of any PDF?   Even if I have to jump through hoops can I?    I guess I can understand Why Adobe has done away with this feature in their free tool, as they were not getting any revenue off of it, but it greatly diminishes the usefulness of Acrobat Reader and therefore all PDFs for me.
    Thanks in advance for your response.

    To enable this right you need Acrobat, not the free Reader.
    However, starting from Reader X it is possible to add simple markups to any file, unless it has been specifically disallowed by the creator of the file.

  • In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to him.

    In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
    Thanks

    Hi,
    I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
    Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
    As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
    Best wishes
    John M
    As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is it possible to add a graphics card to the back of my HP

    Hello  I want to know if it's possible to add a new graphics card to the back of a Laptop not inside of it but on the back of my laptop ???  my graphics Card is a Intel 4000 graphics card is a terrible for gaming TERRIBLE !!!  

    Not sure where it would go on the back, but no the system is closed. There is no place to insert a graphics card or attach it. You will find some hokey stuff on the internet where people say you can plug a video card in the wireless card slot but those are a hoax at worst and at best they do not tell you that such a thing would not even perform as well as what you have and is likely to damage the motherboard. 

  • Is it possible to add a backlit keyboard to an hp envy touchsmart 15

    is it possible to add a backlit keyboard to an hp envy touchsmart 15?

    Daevid.
    Yes you can.
    Your manual here.
    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0CB8QFjAA&url=http...
    Page 20 chapter 3.
    REO
    HP Expert Tester "Now testing HP Pavilion 15t i3-4030U Win8.1, 6GB RAM and 750GB HDD"
    Loaner Program”HP Split 13 x2 13r010dx i3-4012Y Win8.1, 4GB RAM and 500GB Hybrid HDD”
    Microsoft Registered Refurbisher
    Registered Microsoft Partner
    Apple Certified Macintosh Technician Certification in progress.

  • Is it possible to add a hdmi port? Hp envy 23-d010ea all-in-one

    I wanted to get a Ps4 soon but i dont have a tv, and on my computer i dont have a hdmi port. i see on other models of my computer they have it for example on the 23-d052 its like this 
    Where as on my one is like this
    so that part is just an empty space. i was wondering if it were possible to add the hdmi port or if there was a way i could still play the ps4 on my computer?
    This question was solved.
    View Solution.

    The USB 3.0 to HDMI adapter referenced above, is only designed to connect to a USB port on you computer and output an HDMI signal to an HDTV or monitor. It will not allow you to connect the HDMI output of a game console to your computer.
    It may be possible to purchase all the components necessary to add that functionality to your computer, however the cost would far exceed the price of a new monitor or HDTV. Please purchase an inexpensive HDTV or monitor to use with your PlayStation.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Is it possible to add a new graphics card to my macbook pro 2011 13"

    Is it possible to add a new graphics card to my macbook pro 2011 13"?

    Hi W,
    Sorry, but no. It's soldered onto the logic board.

  • When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the SearchText and IF statements that change the URL depending on what is typed?

    When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the searchTerms and IF statements that change the URL depending on the searchTerms? Every time I try to add something firefox doesn't want to add it as a search plugin. I need to create a more powerful search tool for personal use.

    I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.

  • Is it possible to add more than one page at a time in pages - word processing?

    Is it possible to add more than one page at a time in pages - word processing?

    I haven't been able to find a way to add more than one page at a time.  I think you'll have to add them one at a time. 

  • Is it possible to add 16GB (2x8GB) of ram to the stock 8GB (2x4GB)  that is already in the iMac?   A total of 24GB (2x4GB, and 2x8GB)

    Purchasing the new 27" iMac
    Is it possible to add 16GB (2x8GB) of ram to the stock 8GB (2x4GB)  that is already in the iMac?
    A total of 24GB (2x4GB, and 2x8GB)
    upgrading memory on the new iMac 27"3.4GHz Quad-core Intel Core i7,
    8GB 1600MHz DDR3 SDRAM - 2x4GB
    3TB Fusion drive

    You can do it without any problem, but make sure you put the memory horizontally, so you will get the advantages of the Dual Channel. You can buy the memory in OWC or Crucial to make sure you have a compatible memory

Maybe you are looking for