Get the Application via Backing Bean ADFBC model

I'm trying to get an instance of an Application model via a backing bean and it will return null; I see the error message:

* < InstantiateDataControl > [1097] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? *

I can drag a VO on my jsff page and that seems to work fine but when I want to get the app module and manipulate a VO in the code, I get the above.

I tried both approaches, and they produce the same error message and null data control.
1.
String dcFrameName = BindingContext.getCurrent () .getCurrentDataControlFrame ();
DataControlFrame dcframe is BindingContext.getCurrent () .findDataControlFrame (dcFrameName);.
DataControl dc = dcframe.findDataControl("NavModuleAMDataControl");

ApplicationModule am = ((DCDataControl) dc) .getApplicationModule ();
am back;

2 return (ApplicationModule) JSFUtils.resolveExpression ("#{data." + name + ".dataProvider"});


Anyone seen this before?

See the section "9.10.3 How to access an Application Client Module Interface in a Web Application from merger" of the Guide of Fusion JDev 11.1.2.0.0:

http://download.Oracle.com/docs/CD/E16162_01/Web.1112/e16182/bcservices.htm#sthref356

DMI

Tags: Java

Similar Questions

  • I rolled again Firefox 4.0 to 3.6 and now my navigation bar still looks like instead of 3.6 4.0 how to get the old layout back?

    I rolled again Firefox 4.0 to 3.6 and now my navigation bar still looks like instead of 3.6 4.0 how to get the old layout back?

    The fastest way is to use the option 'Restore the default toolbar set' as shown here - https://support.mozilla.com/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    I just download v4.0. How can I get the third arrow back button navigation, which allows the selection of a page forward or back?

    Don't know how to get the exact button back (sorry) I dig around too much to do...
    But! Today, I found by chance that by clicking and holding on the back button the same box to popup in last-12-sites and you can stream on the list to return to that particular site.

    Not exactly what you (and me) tried but at least the functionality is there.

    Good luck!

  • Get the application installed by program

    I want to get the application installed by program.

    I do like that

    ApplicationDescriptor applicationDescriptor [] = CodeModuleManager.getApplicationDescriptors (modulehandle);

    I have a problem what to pass in modulehandle into the getApplicationDescriptors method.

    Please help me in this.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/CodeModuleManager.html#...

  • Hard drive has been corrupted and replaced it with the new hard drive but couldn't get the windows genuine back 8

    Original title: recovery of original windows 8

    When I bought the new device, it was loaded with windows 8 but a few days before my hard drive has been corrupted and replaced it with the new hard drive but could not get the real Windows back 8.

    Please help me to get my windows genuine 8 back so I could get additional updates downloaded.

    Hello Vishal,

    Welcome to the Microsoft community. I appreciate your efforts to resolve the issue. I will certainly help you with the problem you are experiencing.

    If you purchased a computer with installed OEM Windows 8 on it, there could be a sticker on the Tower, or in the back (in the case of a laptop) with the product key to this topic. If there is no sticker, he can be preinstalled on your system BIOS.

    See the suggestions posted by Andre Da Costa replied on March 7, 2013.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-windows_install/how-to-get-Windows-8-product-key-in-preloaded/ea0e53ae-3506-4ba2-a092-f266ece7072f?auth=1

    In addition to this, see:

    Product key lost or misplaced (certificate of authenticity) for Windows

    If the problem persists, you can contact the manufacturer of the hardware for the same thing and check.

    Hope this information was useful.

  • Removal of the model of the application via the API - 11 g

    Hi all

    I try to delete a query template customized via API but is "outdated data Exception error".

    Code:
    {} public static void deleteCustomRequestTemplate (long requestTemplateKeyValue)
    System.out.println ("inside deleteCustomRequestTemplate");
    OIMClient oimClient = null;
    try {}
    oimClient = Utility.getConnection ();
    RequestTemplateService requestTemplateService = (RequestTemplateService.class) oimClient.getService;
    System.out.println ("before you remove the request template');
    requestTemplateService.deleteTemplate (requestTemplateKeyValue, new Timestamp (new Date () .getTime ()));
    System.out.println ("application model has been deleted");
    } catch (StaleDataException sde) {}
    sde.printStackTrace ();
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    Error:
    oracle.iam.platform.kernel.StaleDataException: stale data while editing or deleting the ID 123 of the application model.
    at oracle.iam.request.repository.RequestTemplateManager.verifyStaleData(RequestTemplateManager.java:567)
    at oracle.iam.request.repository.RequestTemplateManager.deleteTemplate(RequestTemplateManager.java:495)
    at oracle.iam.request.impl.RequestTemplateServiceImpl.deleteTemplate(RequestTemplateServiceImpl.java:57)
    at oracle.iam.request.api.RequestTemplateServiceEJB.deleteTemplatex (unknown Source)


    It means I have to restart my DB server or am I in the wrong way?

    Hello

    Here is the code under test, it worked fine:

    RequestTemplateService requestTemplateService = (RequestTemplateService.class) oimClient.getService;
    RequestTemplate requestTemplate = requestTemplateService.getTemplate ("Testing");
    System.out.println ("before you remove the request template');
    System.out.println ("last modified Time" + requestTemplate.getLastUpdatedTimestamp ());
    requestTemplateService.deleteTemplate (requestTemplate.getId (), requestTemplate.getLastUpdatedTimestamp ());
    System.out.println ("successfully removed ::");

    Kind regards
    Raghav.

  • get the Application Module during the invocation of Taskflow delimited

    Hello dear developers,

    I have a filter that maps just before the Faces Servlet and fill some attributes in the HttpSession before it proceeds with the request

    [...]

    If (_clientUser! = null & &! _clientUser.isEmpty ()) {}

    session.setAttribute (CLIENT_USER_URI_PARAM_NAME, _clientUser);

    filterChain.doFilter (servletRequest, servletResponse);

    return;

    }

    [...]

    There are some practical information for which task flow should be addressed within the URI,

    faces/ADF. Task-Flow? ADF.tfId = Task-Flow-Definition-ID & adf.tfDoc=/WEB-INF/task-flow-definition-id.xml

    After I continue the application there is a method call within the bounded workflow that is called before the display (allows to call the current view), making it default business

    [...]

    activity < default > doStuff < / default activity >

    [...]

    The method itself is in a Managed Bean PageFlowScoped, which is added to the task-flow-definition - id.xml

    This is the method that is called before the "MainPage"-view of doStuff ".

    public class {controller

    [...]

    public void doStuff {}

    FacesContext ctx = FacesContext.getCurrentInstance ();

    Card sessionMap = ctx.getExternalContext () .getSessionMap ();

    String clientUser = (String) sessionMap.get (CLIENT_USER_URI_PARAM_NAME);

    AppModImpl am = getApplicationModule();

    DBTransaction transaction = am.getDBTransaction ();

    do more things

    }

    [...]

    }

    public AppModImpl getApplicationModule() {}

    FacesContext fc = FacesContext.getCurrentInstance ();

    Application app = fc.getApplication ();

    ExpressionFactory elFactory = app.getExpressionFactory ();

    ELContext elContext = fc.getELContext ();

    {ValueExpression valueExp = elFactory.createValueExpression (elContext, "#{data.", Object.class "}") AppModDataControl.dataProvider};

    AppModImpl m = valueExp.getValue (elContext) (AppModImpl);

    am back;

    }

    Everything works well so far. But if I try to get the Module of the Application. There is not.

    This app normally isn't any what DataControl, because is just a root application which different components of blocks that have been added by ADFLibrarys, but I added a DataControl to the DataBindings.cpx and an iterator for the MainPagePageDef (just to understand a DataControl in links) but still no result.

    Do you have any tips for me how I can access the application Module? FacesServlet should have been already created the necessary FacesContext managed Bean is called at the moment or it only creates a new FacesContext time a real (jspx/jsf) Page loads?

    Yours,

    Matthias Schnell

    I got a response:

    Here is the block message that has helped me to understand.

    Andrejus Baranovskis Blog: How to fix error of initialization of the control Data with the ADF libraries

  • How to get the Application Module - ADFC-10001

    Hello world

    I use jdev 11.1.1.7 version. In my project, I have a form that is rendered in the portal by clicking on a link. When I click on the link, it opens the form for the first time, if I close the form and try to open it again, it works but if I close and try to open it for the third time, it does not work and it gives an error associated with rendering after debugging the data control. , I realized that somehow, it cannot find the data for the third time control.

    If I use the code to get the below request form

    BindingContainer DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCDataControl cDataControl = bindingContainer.findDataControl("ComplianceModuleDataControl");

    or if I use iterator

    BindingContainer links = getBindings();

    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("CriminalHistoryVO1Iterator");

    RowSetIterator rsi = dciter.getRowSetIterator ();

    It gives an error like this

    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)

    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)

    Caused by: javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)

    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)

    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)

    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)

    Somehow the iterator returns null for third click.

    In summary, in my third click, I can't make the data control, which may cause this problem. This is a really urgent situation. I'll appreciate any help.

    Thank you

    Melis,

    Hi user

    the first thing you should not write these methods to the constructor, instead create method to expose layer model through client and use in taskFlow as default activity

    It is not recommended to use the code in the constructor of beans as if there is that no bean exception will not be instantiated

    Why are you applicationModule at the bean? no need for this just write your code in the AMImpl class and use through the link layer

    It's the best coding practice, you have to try

    Thank you

  • How to develop the Table of Backing Bean tree nodes?

    I have a requirement where I want my table to be expanded all three nodes. InitiallyExpanded = True develops alone.
    Is it possible to have all the Backing Bean nodes?

    Code snippet will be very useful.

    Thanks in advance,
    TK

    For all nodes in a treetable can be expanded, you will need to add all the rows of the disclosedRowKeySet.

    (1) create a binding for the treetable in average managed code as "treeTable.
    (2) create a CommandButton named "Expand" (under the picture of the tree) and Visible set to false and create a link to a page named expandButton & in the get accessor for the commandButton control method, call the following method:

    public RichCommandButton getExpandButton() {}
    this.expandTreeTable ();
    }

    private RowKeySet disclosedTreeRowKeySet = new RowKeySetImpl();

    private void expandTreeTable() {}
    If (this.treeTable! = null) {}
    disclosedTreeRowKeySet = new RowKeySetImpl();
    Model CollectionModel = (CollectionModel) treeTable.getValue ();
    JUCtrlHierBinding = treeBinding
    (JUCtrlHierBinding) model.getWrappedData ();
    JUCtrlHierNodeBinding RootNode = treeBinding.getRootNodeBinding ();
    disclosedTreeRowKeySet = treeTable.getDisclosedRowKeys ();
    If (disclosedTreeRowKeySet == null) {}
    disclosedTreeRowKeySet = new RowKeySetImpl();
    }
    List = firstLevelChildren
    rootNode.getChildren ();
    for (node JUCtrlHierNodeBinding: firstLevelChildren) {}
    List ArrayList = new ArrayList();
    List.Add (node.getRowKey ());
    disclosedTreeRowKeySet.add (list);
    expandTreeChildrenNode (node, treeTable, list);
    }
    treeTable.setDisclosedRowKeys (disclosedTreeRowKeySet);
    }
    }

    Private Sub expandTreeChildrenNode (RichTreeTable, rt,
    JUCtrlHierNodeBinding node,
    The list parentRowKey) {}
    ArrayList children = node.getChildren ();
    List rowKey;
    If (children! = null) {}
    for (int i = 0; i)< children.size();="" i++)="">
    rowKey = new ArrayList ();
    rowKey.addAll (parentRowKey);
    rowKey.add (((JUCtrlHierNodeBinding) children.get (i)) .getRowKey ());
    disclosedTreeRowKeySet.add (rowKey);
    If (((JUCtrlHierNodeBinding) (children.get (i))) .getChildren () is
    null)
    continue;
    expandTreeChildrenNode (rt,
    (JUCtrlHierNodeBinding) (node.getChildren () .get (i)),
    rowKey);
    }
    }
    }

    Thank you
    Nini

  • Problem with the file opened in the application via InvokeRequest

    Hello

    my application opens the file and reads its binary content. I have a small problem to open a file from a navigation or an attachment.

    But first here's how my app works. I have a signal/slot-connection in my applicationUI constructor:

    ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app), m_invokeManager(new bb::system::InvokeManager(this)) {
    
      bool ok;
    
      // Since the variable is not used in the app, this is added to avoid a
      // compiler warning.
      Q_UNUSED(ok);
    
      ok = QObject::connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));
    
    }
    

    So if the user clicks on a file it can open in the following C++ function:

    void ApplicationUI::handleInvoke(const bb::system::InvokeRequest& request) {
    
        QString workingDir = QDir::currentPath();
    
    // Initiate the appropriate target based on the invoke.target-key
        if (request.target() == "com.myapp.card.previewer") {
    
            m_uri = request.uri().toString();
    
            QString FileToOpen = m_uri.replace(QString("file://"), QString(""));
    
            bb::cascades::Page* PageToOpen = ApplicationUI::doLoadPageDetails(FileToOpen);
    
            if (PageToOpen != NULL) {
                initPreviewerUI();
            } else {
                ShowToast("FEHLER! Seite kann nicht geladen werden");
            }
        }
    }
    

    The doLoadPageDetails () - function creates a page and filled with binary content of reading a file. If the file contains errors or is corrupted an exception is thrown.

    And here is my problem. When I opened a file corrupted first the screen becomes darker before opening the app. The I get error messages, exactly as I want. But the screen stays dark. I can't take another navigation element. Also, I can't use the back button. The only solution is to wipe the screen and then use the active frame to close the filebrowser and reopen it.

    That I can't use it with attachments to emails. When I open on and the screen is dark, I can't close the view for emails. So to see the mails again I have to restart the BB decive.

    I'm not fluent in English, but I hope you understand my problem. Is it possible to cancel the invokeRequest when the file is corrupted? Or what can I do here?

    Well, the solution was to use a Toast message but the dialog box. Because that prevents the application and I can't and shows just the message, with the button on this dialog box, I cannot tell the app to close.

  • where can I get the application of the excell and writer and pdf reader

    Where can I get reading apps, is calculating as in Mobile Android (pdf etc.)

    Hi marvelouse,.

    Unfortunately, it is not possible to install Android .apk on Firefox OS.

    If, however, the application has a web - app or the mobile version of its Web site available, you can access these services and pin them to your home screen of Firefox for the operating system.

    Alternatively, you can contact the developers and ask that they create a version compatible with Firefox OS and the open Web.

    -Ralph

  • Try reinstalling firefox on a windows machine 7 and I get «the application could not start correctly (0xc0000142)»

    To solve a different problem, I uninstalled Firefox. After you have solved the other issue I'm tying to re - install Firefox and get an error message that says that "the application could not start correctly (0xc0000142). Click OK to close the application. "The title bar of the window, said"setup - stub.exe - Application error. "My PC is a Dell Studio 19 all-in-one running Windows 7 Home Premium.

    I ended up solving this problem by doing a reinstall on Windows 7 site. It took a little while but fixed this and a few other issues I've had.

  • MacBook Pro &amp; Samsung Smart TV: could not get the display via HDMI

    Hi Forum members,

    I'm not able to get the display of macbook to smart tv via HDMI cable.  Here are some of the conclusions that I have. Can someone please shed some light on this weird question.

    MacBook Pro Rentina 13 "El Capitan 10.11.5.

    Samsung Smart TV 48 "UA48J6200

    Crush - HDMI cable.


    -TV says 'No Signal'.

    -J' checked the cable is good since I'm able to get my Dell Latitude processors E7450 and controller display.

    -Go to Preferences > display. I see no possibility to detect the display etc...

    -Able to connect same macbook to the sony smart tv at my friend using the same cable and it's all good.

    At this point, I am not able to understand where is the problem... TV or Macbook

    Thank you.

    Hmm. Have you tried to get your friend or someone connect to your Samsung Smart TV?  It does seem like your Macbook or the cable are the issue.

    Edit: actually re read your post. I think that to see the option detect go to Preferences > poster under view press on and hold down the option key. bottom right, it should appear.

  • Trying to install flash player. get the application single instance message can only rub, but it happened 2/3 days. Help?

    I tried to install Flash Player, but get the message that can only run one instance of the application. Have tried various things but not just anywhere.

    If anyone can help? Thank you.

    This error appears after completing the download and launch the installation file? If so, you may have to restart Windows. Sometimes the installer of Windows accumulates a delay in changes and stops working correctly until you restart the computer and let to clear its queue.

  • I downloaded firefox 4 only to find my system does not support it, I replaced the previous version of firefox until I learned my mistake, how can I get the old version back?

    I use a Mac os x 10.4.11
    After you download Firefox 4, I put it in my applications folder replacing the old version of firefox, now I learned it is not supported on my system. Help, please

    There is a third part of Firefox 4 version that works under OS X 10.4/10.5 and PPC Macs, for details, see http://www.floodgap.com/software/tenfourfox

    If you prefer, you can get the latest version of Firefox 3.6 http://www.mozilla.com/en-US/firefox/all-older.html

Maybe you are looking for