BackingBean Method call from Task flow isnot getting  the Binding Container

Hi All,
I am trying to call a backing bean method from a task flow using method call activity, where my page belongs to.
In this method I am trying to get the binding container,
      DCBindingContainer dcbindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
      OperationBinding operationCreate = dcbindings.getOperationBinding("CreateInsert"); but it is evaluating to null and throwing null pointer exception.
javax.el.ELException: java.lang.NullPointerException
     at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
     at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
     at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:168)
     at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:161)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:989)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:878)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:777)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:551)
     at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:147)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
     at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
     at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)I guess, I miss something in this process, but no idea what it is ...!!!!
Any help will be appreciated.
I am using Studio Edition Version 11.1.1.3.0
Ranjith

Hi Arun,
In my task flow i am calling a jspx page as a popup,
through my jspx page I can do all these operations,
but the problem is when I am trying to call a method written in the Backing bean of that page, at that time only the method is not getting the bindings.
Create insert operation is there in the bindings....
Ranjith

Similar Messages

  • Can we call a task-flow from a bean in adf?

    Sir,
    Can we call a task-flow from a bean in adf?
    Regards

    you can do this using taskflow call activity
    check - Oracle ADF World: ADF Task Flow Call Activities
    http://docs.oracle.com/cd/E24382_01/web.1112/e16182/taskflows_activities.htm#ADFFD21945
    you can pass input parameter map and dynamic taskflow reference from managed bean
    check -https://blogs.oracle.com/DavidGiammona/entry/dynamically_assign_task_flow_c
    Or if you want to use dynamic region to swich between taskflows
    see- Zeeshan Baig's Blog: Working with Dynamic Regions in Oracle ADF
    Ashish

  • Call bounded task flow from managed bean

    Hi experts,
    can we call a bounded task flow from a managed bean?
    if yes , please explain.....
    Thankz in advance
    PMS

    Hi john,
    Thankz for ur reply........sorry if im asking stupid questions.
    this is my tree selection handler
    public void treeSelectionHandler(SelectionEvent selectionEvent) {
    RichTree tree1 = (RichTree) selectionEvent.getSource();
    RowKeySet rks2 = selectionEvent.getAddedSet();
    Iterator rksIterator = rks2.iterator();
    if (rksIterator.hasNext())
    List key = (List)rksIterator.next();
    JUCtrlHierBinding treeBinding = null;
    treeBinding = (JUCtrlHierBinding) ((CollectionModel)tree1.getValue()).getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = nodeBinding = treeBinding.findNodeByKeyPath(key);
    DCIteratorBinding _treeIteratorBinding = null;
    _treeIteratorBinding = treeBinding.getDCIteratorBinding();
    JUIteratorBinding iterator = nodeBinding.getIteratorBinding();
    String keyStr = nodeBinding.getRowKey().toStringFormat(true);
    iterator.setCurrentRowWithKey(keyStr);
    JUCtrlHierTypeBinding typeBinding = nodeBinding.getHierTypeBinding();
    String targetIteratorSpelString = typeBinding.getTargetIterator();
    if (targetIteratorSpelString.equals("${bindings.Iascat1View1Iterator}"))
    System.out.println("Tree Selected*************"+targetIteratorSpelString);*
    else
    if(targetIteratorSpelString.equals("${bindings.Iascat2View1Iterator}"))
    *System.out.println("Tree Selected**************"+targetIteratorSpelString);*
    else
    *System.out.println("Tree Selected**************"+targetIteratorSpelString);*
    I hav bounded task flow for each iterator for creating new record......i hav to replace code for calling bounded task flow instead of printing statement
    PMS

  • Is it possible to call a task flow present in 1 ADF Mobile Application to another ADF Mobile Application?

    In ADF Mobile, I want to call a task flow present in application1 to a different application2 on click of a button. Is it possible?

    Hi,
    This is my code to call the package.
    String amDef = "model.service.DAFService";
    String config = "DAFServiceLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef, config);
         CallableStatement cstmt = null;
         String stmt = "begin call CP_DAF_PKG.DAF_PROCESS(?,?,?,?,?,?,?,?,?); end; ";
         cstmt = getDBTransaction().createCallableStatement(stmt,0);
    But in this case, I am getting
    oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
    I understand the reason for this error. I need to call the
    createcallableStatement from the application module that I have above.
    Something like am. (call the package)
    But not sure about any method which does that..
    Please let me know if you know the way to solve it.
    Thanks,
    Venki

  • Programmitically call a task flow commit

    I'd like to execute a task flow commit from a method inside an application module impl class.
    How can I get a handle on a task flow and invoke the commit in my code?
    Any insight appreciated.

    Thanks for the help.
    Where can I find API docs that include this DataControlFrame?
    Long story short, I am trying to do this:
    DataControlFrame dcf = bc.getCurrentDataControlFrame();
    and the compiler is complaining that getCurrentDataControlFrame returns a string and not a
    DataControlFrame. Where can I pass that string returned by getCurrentDataControlFrame to get a handle on the DataControlFrame itself?

  • ER : 10268883 : DROP AS METHOD ACTIVITY ON TASK-FLOW SHOULD ALLOW CHOOSING

    hi
    In the context of Re: Task Flow API for programmatically retrieving parameters?, this forum thread is Re: Task Flow API for programmatically retrieving parameters? to get your vote or feedback on one specific ER:
    - 10268883, "AM: DROP AS METHOD ACTIVITY ON TASK-FLOW SHOULD ALLOW CHOOSING PAGEDEF FILE"
    It resulted from a suggestion by Steven Davelaar
    at http://groups.google.com/group/adf-methodology/msg/b701acd873c3d888
    "I think it would be a nice ADF enhancement that when you drag and drop an AM method as method activity onto a tasflow diagram, you get a choice to either create a new page def, or pick a page def of some other (view) activity already on the taskflow. "
    (But, regardless the intent of this forum thread, feel free anytime to pursue other means to attract the attention of Oracle to a specific ER. Possibly by creating a service request referring to an ER, or by any other way you see fit.)
    many thanks
    Jan Vervecken
    edit (January, 2011) : see also "The official ADF EMG bug and ER thread"

    fyi
    There is a +1 (or would it weigh more than one), "a jolly good idea ", from Duncan Mills.
    at http://groups.google.com/group/adf-methodology/msg/bf7d2c32106b2e7b
    "Sev 3 is the default status for an Enhancement so that's why it's at that value initially. I've actually upped the priority of this one as I think it's a jolly good idea and I don't really see any downside to it assuming you don't have a huge TFs with many many method activities of which only a small number are used most of the time."
    regards
    Jan

  • Code for return from task flow

    Hi,
    I came across this TaskFlowUtils which contains utility methods related to task flow.
    Is there any method which will cause return from task Flow. I can't find the same.
    I do not want to return via Task Flow return activity.
    Regards,
    Nikhil

    Nikhil, which jdev version do you use?
    What is your use case?
    Are you referring to the class TaskFlowUtils Chris Muir developed and which is available through ADFEMG?
    If yes, this class is more to inspect the current task flow. It contains some methods to control the task flow (commit, rollback), but is not meant to navigate.
    It is essential to understand how task flows work, if they are called using a task flow call activity or if they are run in a region. A task flow run in a region is not meant to return. It always run once it initiated. There are patterns how regions communicate with their parent or other regions.
    So the question is what do you want to do?
    Why do you want to return from a task flow and why don't you want to use the task flow return activity?
    Timo

  • Calling bounded task flows imported as ADF libraries

    Hello,
    I have a main application referencing many bounded task flows included in ADF libraries.
    Is there a way to make the application not throwing exceptions if one of these libraries including the called task flow is not found?
    The first question is how to catch the exception "Caused by: oracle.adf.controller.ControllerException: ADFC-02001"
    The second problem is that once an exception is thrown , the only way to make the application work again with that task flow is to redeploy the whole application with the missing library in the proper place.
    It seems it is not possible to just add the library at run-time.
    Redoplying an application also seems to invalidate all the current open sessions.
    Could you give me suggestions or best practice on making the main application more indipendent from the libraries?
    Thanks.

    Hello Frank,
    It seems there's no way to catch the exception thrown when dinamically calling a bounded task flow in a (missing) library. In facts, I added the single page of the main application as default exception handler activity. I also tried to catch ALL exceptions in the Launcher class below, but I had no luck at all. Task flows are called dinamically from this common piece of code (appropriate for the UI Shell template):
    try {
    if (newTab) {
    TabContext.getCurrentInstance().addTab(title, taskflowId);
    } else {
    TabContext.getCurrentInstance().addOrSelectTab(title,
    taskflowId);
    } catch (TabContext.TabOverflowException toe) {
    toe.handleDefault();
    } catch (ControllerException ce) {
    System.out.println("The flow arrives here " + title + ": " + taskflowId);
    } catch (RuntimeException re) {
    System.out.println("The flow arrives here " + title + ": " + taskflowId);
    } catch (Exception e) {
    System.out.println("The flow arrives here " + title + ": " + taskflowId);
    I also tried to call the task flow in a remote application, but TabContext.getCurrentInstance().addTab(title, taskflowId) expects the taskflowid to be part of the main application, not of the remote app, since addTab() always add a "/" before the taskflowid String passes as parameter.
    So again my question: is there a way to profit by the dynamic features coming along with the UI Shell template, where task flows can be really referenced and called each time at run-time, no matter if libraries containing these task flows are present or not when deploying the caller application?
    I also repeat that from the tests I have done it looks like I can deploy the caller application without the referenced ADF libraries in their place (containing taskflows that should be called at run-time on user actions), but the problem in this case is that after that moment there's no way to fix the problem by just adding the missing library, that is you cannot place the library where it is expected to be and expect the caller to work after next call; this will just not work until next deploy of the calling application when libraries are in place . We also don't want completely separate web applications. We need task flows integration with the chance to modify and deploy these taskflows as ADF libraries at run time, separately from the caller of the taskflow, without needing to restart/deploy the caller application everytime a libraries changes or a missing library is added.

  • Call bounded task flow

    hello,
    how can unbounded task flow call bounded task flow.
    thank you.

    Hi,
    Not exactly sure what you want to achieve, other than the obvious.
    So, here are some links that might help you;
    http://www.oracle.com/technetwork/developer-tools/jdev/adf-task-flow-design-132904.pdf
    http://docs.oracle.com/cd/E15586_01/web.1111/b31974/taskflows.htm
    Regards,
    Dimitris.

  • I downloaded an app off the store which said it was free and part of the 5 year promotion. I've been charged for the app by the store. I don't want the app and there's no one to speak to about it. Who can I call and how can I get the app off my phone?

    I downloaded an app off the store which said it was free and part of the 5 year promotion.
    I've been charged for the app by the store. I don't want the app and there's no one to speak to about it.
    Who can I call?
    How can I get the app off my phone?
    How do I get my money back from something I wouldn't have ordered?

    You cannot call anyone.  You contact them as everyone else does:  http://www.apple.com/support/itunes/contact/
    You delete the app as you do any other app.  Hold an icon until they wiggle.  Tap the "x".  This is covered in the manual.

  • After trying to restore from time capsule, I get the following message when I try to access the folder "data." The folder "Data" can't be opened because you don't have permission to see its contents.  Any ideas?

    after trying to restore from time capsule, I get the following message when I try to access the folder "data": "The folder “Data” can’t be opened because you don’t have permission to see its contents."  Any ideas?

    Are you restoring from a TM backup??
    Check the methods Pondini outlines to do restore.
    Q14-17
    http://pondini.org/TM/FAQ.html

  • Face hits buttons while I am on a call. How do I get the screen off when I am talking? Thanks

    Face hits buttons while I am on a call. How do I get the screen off when I am talking? Obviously new to iPhone!
    Thanks

    The iPhone has a proximity sensor that will turn the screen off if you hold the phone up to your ear. Don't hold it inches away hold it up close and the screen will go dark, hold it away from your ear and the screen will come alive.

  • When trying to sign in to iCloud from my PC I get the message "You can't sign in because of a server error"

    When trying to sign in to iCloud from my PC I get the message "You can't sign in because of a server error".
    This happens on both my Lap Top and Desk Top computers both running Windows 7.

    I also have the same problem. I've tried all fixes listed in other forums and nothing works. Running windows Vista 32 bit. Any working solutions yet? Tried every solution listed for the cmd prompt. Turned off antivirus and spyware. Rebooting about 100 times. Nothing works.

  • When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please help. I have tried lots of things now and cannot solve it.

    When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please can someone help. I have tried lots of things now and cannot solve it.

    "Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
    In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
    Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
    In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
    That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done.

  • When I try to sign into iCloud from Windows PC I get the message "You can't sign in because of a server error." When I check the iCloud status, all is Green.

    When I try to sign into iCloud from Windows PC I get the message "You can't sign in because of a server error."  When I check the iCloud status, all is Green.  What is the fix?

    Hi spillgar,
    If you are having issues signing in to iCloud from your Windows machine, you may find the following articles helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    iCloud: If you can’t sign in to iCloud.com
    http://support.apple.com/kb/ph2611
    Regards,
    - Brenden

Maybe you are looking for

  • The external hard drive is not showing up on my desktop

    I've just brought a new external Hard drive for my mac book pro and when I put the usb cable into the laptop nothing showed up on the desktop. I waited a few minutes but nothing happen and then I turned off the computer and did it again. Will be grea

  • How do I create two accounts on one computer?

    Hi - I just bought my son a new iPod and he gave me his old one (a mini). His iTunes account is on my computer and I want to create my own account on the same computer so that we're not paying off each other's credit cards. How do I do that? It doesn

  • SharePoint InfoPath error SSL/TLS extern list

    Hello ! I want to modify my Element display on my extern List (BDC SQL Server) with infopath but in SharePoint Designer when I click on edit the form with InfoPath I have this error message : "Could not establish trust relationship for the SSL/TLS (s

  • Promoting a server to a Domain Controller

    Quick question - I am just trying to satisfy my curiosity. I was reviewing our network at our new company and it looks like I have a Domain Controller using a DHCP address. I know best practice is to use a static address, but is it even possible to p

  • Any using the new Mackie 1200F Firewire IO yet with Logic Pro or Logic Expr

    I am trying to check it out before I buy as they say. I want about sound quality and driver stability. Also how you use and external Tube Preamp with it. I would appreciate any comments.