ADF examples !

Hello ! im a newbie desperate looking for ADF examples please help

Hope this helps (for a newbie)
http://www.oracle.com/technology/products/jdev/11/cuecards111/index.html#adf

Similar Messages

  • Oracle ADF example of use of Single One Choice with Hierarchy Viewer

    I am using JDeveloper Studio 11.1.2.3.0.
    I am looking for a simple example where one can select a value from a Single One Choice component and have it drive a query
    for populating the Hierarchy Viewer.

    You can just use a VO with parameter as the base of your HV - then drag the executeWithParam operation to the page as a parameter form.
    And possibly add a list or LOV to the parameter.
    https://blogs.oracle.com/shay/entry/adding_an_lov_to_a_query_param
    Instead of the table in the video use the HV.

  • Can't Understand ADF example code

    Hi All,
    I am trying to learn ADF from the Oracle Tutorial, but I can't understand this loop:
    public Integer getNextLineItem() {
    int maxLineNo = 0;
    for (ServiceHistories
    svh:getServiceRequests().getServiceHistoriesCollection()){
    if (svh.getLineNo() !=null) {
    int testLineNo = svh.getLineNo().intValue();
    if (testLineNo > maxLineNo){
    maxLineNo = testLineNo;
    return ++maxLineNo;
    }

    Hi,
    It is always a best practice to post the required information while posting the questions.
    1. JDeveloper version.
    2. The link to the tutorial you are using.
    From the initial look, the code looks for the rows in the ServiceRequests table (as collection), and gets the linenumber column. Check its value, and returns the max line number +1.
    -Arun

  • 11g (11.1.1.4) ADF and OPA

    Hi,
    I am using JDeveloper/WLS 11g (11.1.1.4). I have also installed downloaded the latest OPA modeling and server (Oracle Policy Automation 10.2.0 modeling and runtime).
    I then went ahead and installed the determinations-server.war in 11g (embedded in JDeveloper) after modifying the ‘application.properties’ to include the following
    load.rulebase.from.claspath=true
    rulebase.path=rulebases
    I was able to test the http://localhost:7101/web-determinations/ URL
    I was also able to create a basic rule form the modeler and run it against the "Oracle Web determinations" from the tool (instead of the "Oracle Determinations Server").
    My questions are as follows.
    Q1. Deployment of Rules with Fusion: I would like my business users to be able to create rules and test them against a test WLS server preferably the Weblogic server that hosts my web-determinations. In this regard, i would like to know how i can configure the OPM tool to deploy/test against Weblogic. In other words, should i set specific values to Tools->Options->Rule based development->Embedded Server? The only settings i see are for Tomcat, but i am assumign i can put something similar to weblogic. Any sample will be appreciated.
    Note that i do understand the issue about rulebase.path directory. In other words, i can either
    a) explode deploy the determinations-server.war , or
    b) add a director that will contains my rules to the weblogic class path, or
    c) use something like -Ddeterminations.server.rulebase.dir=/some/other/dir/rulebases in my startWeblogic.cmd
    Q2. OPA with ADF Example: Can anyone point me to a working example of OPA that has been integrated with ADF 11g. In other words, i am looking for an end-to-end scenario where i can develop my business rules in OPA and use them in an ADF application. It would be better if the example uses some values of the business rules that reside in a database.
    Q3. OPA versus OBR: Can someone articulate lucidly the use cases when someone would chose OBR (Business Rules in ADF) versus OPA (the haley product), and the implications on ADF development.
    Thanks very much,

    1. In the current version, OPM doesn't directly deploy to anything other than local TomCat. You'll need to manually refresh your WebLogic environment with the latest rulebase.
    2. I'm not aware of an ADF sample. I assume your goal is to host Web Determinations interviews in an ADF UI?
    3. You should use OPA instead of OBR if you need any of the following:
    a) Rules in natural language in any of the supported OPA languages (English, Chinese, French, Spanish, Portuguese, etc....)
    b) Rules in Word/Excel document format that can be easily shared with business users
    c) Interactive interviews for guided decision making, where questions can be automatically generated from rules, and screens are shown only as needed to make progress towards an answer
    d) Detailed decision reports of which rules and data were used to reach a decision
    e) Productized integration with Siebel or SAP
    f) Rich test case development and regression testing capabilities
    More generally OPA is very good at determinations. I.e. reaching the one right decision given a set of input data. It is not a good fit for optimization problems where the goal is to seek the best outcome given a series of constraints. It is also good at taking a large set of law/policy documents are managing them as interconnected rules. It is possible to efficiently manage thousands of pages of material as an OPM project.
    For ADF development, anywhere you have a process that involves a complex decision step, or a calculation that depends on complicated rules that may change frequently or need good business visibility, OPA is a good choice.
    Davin.

  • ADF LOV Size

    Hi,
    Is it possible to resize the LOV popup? I have 6 fields that needs to be displayed in the list.SO i want more wider LOV. How do i do that?
    Thanks,
    Lakshmi

    check this
    http://andrejusb.blogspot.com/2007/12/complex-list-of-values-lov-in-oracle.html
    http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
    http://weblog.singhpora.com/2010/02/adf-example-lov-search-region-fields.html
    http://technology.amis.nl/blog/1933/jdeveloper-11g-model-based-viewobject-list-of-values-and-their-end-to-end-benefit-in-the-web-tier

  • How to make hidden Drop Lists functional in RBList Subforms?

    I have created a form that contains 3 isolated Radio Button lists, each with hidden subforms that are unique per each button.
    Two of my RBLists and subforms work perfectly, showing hidden Drop Down List options and other fields as they should when a button is selected.
    However, RBList3 presents the Drop Down lists as user entry fields only. Each hidden subform in RBList3 contains one drop down menu and one text box for instructions.
    I've used the same javascript to hide/show hidden fields when buttons are selected. All settings seem to match up. Here is a sample of my code:
    if(RBList3.F.rawValue != 2) 
        this.presence = "hidden";
        newsubform.presence = "hidden";
    else if(RBList3.F.rawValue == 2)
        this.presence = "visible";
        newsubform.presence = "hidden";
    Does anyone have any suggestions for how to make my Drop Down Lists in RBList3 show as functional Drop lists?
    I have attached the form for reference.

    See example #62 on my blog for a 10.1.3 example:
    http://tinyurl.com/smuench-adf-examples
    For a tutorial on how to create them using the new features we enable in 11g, see my Oracle Magazine article:
    Defining Cascading List of Values

  • How to insert data using jdeveloper 11g

    hi all..
    i'm starting my first web aplication using JSF in jdeveloper 11g.
    I have one table in the database has two attributes(id and name). i connected to the database succrssfuly.
    i built adf application and created JSF page then i draged my view from data controls to built adf form without selected submit button.
    and i draged commit operation and created a button to save .
    but when i run the application the adding process didn't work.
    plz, help me to complete my application .
    thanks

    well Learn ADF first :)
    check this simple Create Edit form http://orclsamples.googlecode.com/files/CreateEditRecord.zip might help you to get started
    also check my blog i post basic cook book kind style ADF examples for newbies http://baigsorcl.blogspot.com/search/label/ADF

  • Problem with a example of "Developing and Using ADF Faces Skins"

    Hi, I've tried the example "Developing and Using ADF Faces Skins", but when I run the sample.jspx page and choose the skin "MyCompany" in the select skin I obtain the next message:
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer._getIconData(SideBarRenderer.java:393)
    at oracle.adfinternal.view.faces.ui.laf.simple.desktop.SideBarRenderer.prerender(SideBarRenderer.java:83)
    at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:79)
    Could somebody help me?
    Thanks a lot ;-)

    Hi there,
    I had the same issue last friday.
    It's probably because you are using JDeveloper 10.1.3.2 instead of 10.1.3.0 or 10.1.3.1 for which the example is made.
    I haven't been able to fix this yet, other then by commenting out the this part of the css.
    Luc Bors
    Message was edited by:
    lucbors

  • JSF/ADF Faces - ADF-BC example/howto?

    Hi,
    Background:
    ==========
    I know that ADF-BC databinding is not included in the JDev 10.1.3 preview.
    I read and searched nearly all howto's, examples, blogs on ADF-Faces available on the net.
    For the past months I learned how to use the ADF-BC with JClient.
    This convinced me to use the ADF-BC and it's binding features (a fantastic framework!!!!) for my model layer.
    I'm developping a web application.
    Most of the examples on ADF-Faces/JSF are on the View Layer.
    My question:
    ===========
    I read somewhere that JDev 10.1.3 production with drag and drop of ADF-BC databinding will be available only in the summer.
    Question 1:
    ==========
    I suppose that meanwhile it is still possible to use the ADF-BC as the model layer for JSF or ADF-Faces, but the databinding must be done manually, is this correct?
    Question 2:
    ==========
    If answer to 1) is yes.
    Where can I find a howto/best practice document that explains how to use ADF-BC with JSF/ADF-Faces in the backing beans?
    My purpose is to develop my code so that it will be "standard" / "compatible" with the production version of JDev 10.1.3.
    I prefer to use the de-facto JSF standard and code the bindings manualy instead of using Struts with available drag'n drop ADF-BC databinding.
    Your advice will be apreciated
    Frederic

    There is no such document for (1) because we are in the process of delivering design time support for ADF BC integration with ADF Faces, as you mentioned.
    Therefore, you could either continue with ADF UIX, ADFm, ADF BC for the time being, or else try out ADF Faces with session scope Managed Beans. In either case, you'll want to convert this later on, when JDev 10.1.3 completes its support for ADF Faces / ADF BC drag-and-drop integration.
    Kind Regards.

  • Displaying Images in ADF/JSF: Error Using Steve Muench's Example #69

    Hi,
    I've been able to load images into the database using Steve Muench's Example 69. However, I'm having issues displaying the images.
    Jdeveloper: 10.1.3.3.0
    Database: 10gR2 with ORDSYS active.
    I'm getting the following error:
    07/08/20 12:09:20.993 JSFOrdImageExample-ViewController-webapp: Servlet error
    java.lang.NullPointerException
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:403)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:263)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:204)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:613)I'm not sure why I'm getting a NullPointerException...
    Previous to this, I had to include the bc4jhtml.jar file as a library in application.xml, and I've tried using the two bc4jhtml.jar files, but neither one seems to work.
    I'm thinking that there must be something simple that I'm missing with the servlet setup...
    Thanks!
    Kenton

    I tried the wayback machine, but unfortunately, it doesn't cache the SWF files either :( I do have a copy of some (ok one) of Steve's old videos (the one that shows how to do a dropdown list in an editable table, back before it was easy to do), but unfortunately, none of the search ones.
    John

  • ADF BC : using UI Locale to translate data (Steve M. example 95)

    hi
    In his example 95, Steve Muench suggests an approach to "Change Preferred UI Locale with a Button in the Page".
    I have made some minor modifications to this example, using JDeveloper 10.1.3.3.0, in an attempt to make it work with "translated data".
    (1) I added a bind variable "LanguageBVar" and an attribute "CalculatedTranslatedDnameAttribute" to "DeptView" with this expression:
    nvl(decode(:LanguageBVar, 'en', dname || ' (en)', 'it', dname || ' (it)'), dname || ' (language not supported)')(2) I added this new attribute to the table and the form on TestPage.jspx
    (3) I implemented the executeQuery() method in DeptViewImpl.java like this:
    public class DeptViewImpl extends ViewObjectImpl
         public void executeQuery()
              Locale vLocale = getApplicationModule().getSession().getLocale();
              System.out.println("DeptViewImpl.executeQuery()"
                   + " : getName() = " + getName() + ", vLocale = " + vLocale);
              setLanguageBVar(vLocale.getLanguage());
              super.executeQuery();
    }(4) If I run TestPage.jspx in JDeveloper, my "translated Dname" column shows "translated data" with suffix "(en)".
    (5) If I click on "Italian", all the labels change, but my "translated Dname" column still shows "translated data" with suffix "(en)".
    (6) After that I added a button to execute "DepartmentListIterator" using an "Execute" binding.
    (7) Again, as in (4), I run the page and see the same behaviour and this output on the console:
    DeptViewImpl.executeQuery() : getName() = DeptView, vLocale = en
    DeptViewImpl.executeQuery() : getName() = DepartmentList, vLocale = en(8) Again, as in (5), I click on "Italian" and see the same behaviour (no extra output on the console in this step).
    (9) If I click on the "ExecuteDepartmentListIterator" button, no "translated data" changes on the page, although this line is added on the console:
    DeptViewImpl.executeQuery() : getName() = DepartmentList, vLocale = itThe modified version of this application, as described here, is available at (check README.txt):
    http://verveja.footsteps.be/~verveja/files/oracle/ChangeLanguageInTheUIForData-v0.01.zip
    question:
    How can I make this application show "translated data" when changing the UI Locale, as in step (5).
    However it is important that a solution for this would be as "non-intrusive" as possible because I would like to be able to use it in an application that has lots of translated data and where the user should be able to change his preferred language on each page.
    many thanks
    Jan Vervecken

    Thanks for your reply Steve.
    In your updated testbindlocale.zip example, the buttons "Italian" and "Inglese" behave as expected. The "TranslatedDname" column has the correct translated data.
    So, I modified the example in ChangeLanguageInTheUIForData-v0.04.zip, in a similar way an moved up the call to "super.prepareRender(lfContext)" before the check on the Iterator Bindings in the current Binding Container, like this:
      public void prepareRender(LifecycleContext lfContext) {
        App app = (App)ELHelper.get("#{App}");
        Locale preferredLocale = app.getPreferredLocale();
        UIViewRoot uiViewRoot = FacesContext.getCurrentInstance().getViewRoot();
        System.out.println("CustomFacesPageLifecycle.prepareRender()"
          + " : preferredLocale = " + preferredLocale
          + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale());
        boolean changedLocale = false;
        if (preferredLocale == null) {
            app.setPreferredLocale(uiViewRoot.getLocale());
        } else {
            if (preferredLocale != uiViewRoot.getLocale()) {
    //        if (!preferredLocale.equals(uiViewRoot.getLocale())) {
                System.out.println("CustomFacesPageLifecycle.prepareRender()"
                  + " : preferredLocale = " + preferredLocale
                  + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale()
                  + " : different so the Locale has changed");
                uiViewRoot.setLocale(preferredLocale);
                changedLocale = true;
        super.prepareRender(lfContext);
              if (changedLocale)
                   DCBindingContainer vDCBindingContainer =
                        (DCBindingContainer)lfContext.getBindingContainer();
                   ArrayList vIterBindingList = vDCBindingContainer.getIterBindingList();
                   for (Object vIterObject : vIterBindingList)
                        JUIteratorBinding vJUIteratorBinding =
                             (JUIteratorBinding)vIterObject;
                        ViewObject vViewObject = vJUIteratorBinding.getViewObject();
    //                    if (vViewObject.getVariableManager().findVariable("LanguageBVar") != null)
                        if (vViewObject instanceof SessionLocaleBasedVO)
                             System.out.println("CustomFacesPageLifecycle.prepareRender()"
                                  + " : calling executeQuery()"
                                  + " : preferredLocale = " + preferredLocale
                                  + ", uiViewRoot.getLocale() = " + uiViewRoot.getLocale());
                             vViewObject.executeQuery();
      }(h1) If I run TestPage.jspx, my "translated Dname" column shows "translated data" with suffix "(en)" and I see this output on the console:
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en(h2) If I click on "Italian", my "translated Dname" column shows "translated data" with suffix "(it)" and I see this output added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = it
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = it(h3) If I click on "Inglese", my "translated Dname" column shows "translated data" with suffix "(en)" and I see this output added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = it
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = it : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = enSo, this seems to behave similar to your updated testbindlocale.zip example.
    about determining whether the Locale has changed
    Consider this scenario ...
    (i1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1).
    (i2) Select a different row in the table, and click the "Edit Number on AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = en, uiViewRoot.getLocale() = en
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en(i3) Without entering an "Example Number ...", just click the "Update and Back to TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[20 ] ... and the "JBO-35007: Row currency ..." message also shows up on the page.
    (i4) Click the "Update and Back to TestPage" button again to return to the "start page".
    If I try a scenario similar to "i1 to i4" where I do provide an "Example Number ..." in step (i3), the first row gets updated instead of the one I selected in step (i2).
    To imporve this behaviour I replaced this line ...
            if (preferredLocale != uiViewRoot.getLocale()) {... with this line ...
            if (!preferredLocale.equals(uiViewRoot.getLocale())) {And after that, a scenario like "i1 to i4" behaves like this:
    (j1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1) and (i1). But only this output is added on the console:
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    DeptViewImpl.executeQueryForCollection() : getName() = DepartmentList, vParamNV[0] = LanguageBVar, vParamNV[1] = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en(j2) Select a different row in the table, and click the "Edit Number on AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en(j3) Without entering an "Example Number ...", just click the "Update and Back to TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = en, uiViewRoot.getLocale() = en ... and no message on the page, just returning to the "start page".
    If I try a scenario similar to "j1 to j3" where I do provide an "Example Number ..." in step (j3), the correct row is updated.
    But, if I precede a scenario like "j1 to j3" with an explicit language change, things go wrong again.
    (k1) Run TestPage.jspx and the "translated Dname" column shows "translated data" with suffix "(en)", the same as in (h1), (i1) and (j1).
    (k2) Click on "Italian", the "translated Dname" column shows "translated data" with suffix "(it)", similar to step (h2).
    (k3) Select a different row in the table, and click the "Aggiorna Numero con AnotherPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = it
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = en : different so the Locale has changed
    CustomFacesPageLifecycle.prepareRender() : calling executeQuery() : preferredLocale = it, uiViewRoot.getLocale() = it
    DeptViewImpl.executeQueryForCollection() : getName() = DeptView, vParamNV[0] = LanguageBVar, vParamNV[1] = it(k4) Without entering an "Campo Numerico ...", just click the "Aggiorna e Ritorna a TestPage" button. This output is added on the console:
    CustomFacesPageLifecycle.prepareRender() : preferredLocale = it, uiViewRoot.getLocale() = it
    oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: JBO-35007: La valuta della riga è cambiata da quando è stata visualizzata linterfaccia utente. La chiave di riga prevista era {0}. ... and the "JBO-35007: La valuta della riga ..." message also shows up on the page.
    (k5) Click the "Aggiorna e Ritorna a TestPage" button again to return to the "start page".
    see http://verveja.footsteps.be/~verveja/files/oracle/ChangeLanguageInTheUIForData-v0.05.zip (check README.txt)
    So, ...
    It looks like some "row currency issues" remain with this approach.
    regards
    Jan

  • Oracle ADF RichSelenium class - any examples on how to use this?

    Digging around the net and found that there is a class for Selenium testing ADF Rich components, namely oracle.adf.view.rich.automation.selenium.RichSelenium located in oracle_common\modules\oracle.adf.view_11.1.1\adf-richclient-automation-11.jar.
    I've been searching for half a day now and cannot find any example code on how to use RichSelenium class for the life of me.
    There are examples of using Selenium with ADF (http://www.oracle.com/technetwork/articles/adf/part6-094560.html) but not using RichSelenium.
    Any lead or information would be highly appreciated, thanks in advance.

    OK figured out how to start using this RichSelenium class and thought I'd post my findings on this thread for the sake of anyone else who wants to know. Here's my code:
    -- START OF CODE
    package my.richselenium.test;
    import java.util.concurrent.TimeUnit;
    import org.junit.After;
    import org.openqa.selenium.WebDriver;
    import org.openqa.selenium.WebDriverCommandProcessor;
    import org.openqa.selenium.firefox.FirefoxDriver;
    * Base test class for handling common functionality across tests - setting up web driver, retrieving URL and cleaning
    * up and resources.
    public class myTest {
    public void runTest() {
    // Create WebDriver
    WebDriver myWebDriver = new FirefoxDriver();
    // Setup Web Driver Command Processor
    WebDriverCommandProcessor wdcp = new WebDriverCommandProcessor("http://www.google.com", this.driver);
    // Instantiate RichSelenium class object
    RichSelenium rs = new RichSelenium(wdcp);
    // Load specific URL
    rs.open("http://www.oracle.com");
    // Let's do some RichSelenium specific processing
    String [] someArray = rs.getAllFields();
    List<String> someList = Arrays.asList(someArray);
    // for loop advance
    for (String temp : someList ) {
    System.out.println(temp);
    rs.close();
    -- END OF CODE
    -----------------------------------------------------------------------------------------------------------------------------------------

  • Looking for example: JAAS login module using ADF BC

    Hello all,
    I have seen the article at http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm by Frank and Duncan detailing how to put together a login module that uses the database for authentication. Great idea. I would like to take it to the next level and use an ADF BC View Object to do the authentication and role assignment for users, but am stuck on a few points. First of all, is there anyone out there who has done this and would care to share? If not:
    1). How do I get a reference to the AM so that I can look up a view object in the login module?
    2). I assume that I am going to need to add my model project classes to the system classpath, correct?
    3). What are the other gotchas?
    4). Or should this be the first question, is this even possible?

    Hi John,
    I am trying to find a relevant example on JAAS login module with ADF BC,
    i have this application that is ready to go in production deployed on a test application server
    everything seems to work fine but it is totally deprived of security :o(
    i have sent post to get some information i read most of it i even came across your blog on the matter
    i am sort of understanding the things needed to do but i would need a working example to get a better grasp on the this subject. I need i think to built a custom login module but i dont know what exactly can be coded inside the jar file that is read from the application and that forces the authentification so if you could help in my research for an example you OR anyONE
    it would be appreciated
    Carl

  • Data Binding in ADF UIX example trouble

    Two related questions:
    From the help example 3. Data Binding in ADF UIX example trouble in JDeveloper on UIX. If this worked I was going to run a small java class that captures the login and passes it as a messagebox with a Welcome login name on the first page, but I can't get past the example and path problems.
    From the example..."
    package yourpackage;
    import java.util.Date;
    public class CurrentDateBean
    public CurrentDateBean() { }
    public String getTime()
    return (new Date()).toString();
    Now, we want to change the page so it uses getTime(). We need to do three things: Tell UIX to data bind the text attribute. Add a <dataScope> to the page to provide data to the content. Write a small "data provider" in Java that can access the bean. First, we'll data bind "text": <text xmlns="http://xmlns.oracle.com/uix/ui"
    text="${uix.data.currentDate.time}"/>The example has one small change. The value is changed to ${uix.data.currentDate.time}, which is an expression that defines the data. This is shorthand for "get the time property from currentDate." If you tried running this example, you'd see nothing. That iss because we haven't given currentDate to the page, so the databinding failed, and the "text" is left to null. We do this by adding <dataScope> to the page: <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    Q#1?? Trying to follow the demo. The method class and method name do not seem to match the names in the above class from the demo. Am I missing a point here, please help.
    <data name="currentDate">
    <method class="yourpackage.DataDemo" method="getCurrentDate"/>
    </data>
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    </contents>
    </dataScope>
    Q#2?? When I try and apply the demo class to my home.uix XML file with
    "<?xml version = '1.0' encoding = 'windows-1252'?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- start Add DataProviders (<data> elements) here -->
    <data name="currentDate">
    <method class="us.mn.state.dot.apptrack.security.CurrentDateBean" method="getTime()"/>
    </data>
    <!-- end Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <text text="${uix.data.currentDate.time}"/>
    <document>
    <metaContainer>"
    I get the following, and I don't know how to make the UIX XML accept the correct path, please help:
    �file:/C:/JDeveloper905p/jdev/mywork/ProjTrack/AppTrack/ViewController/public_html/home.uix: Parsing error, line 12, column 97: Could not find class us.mn.state.dot.apptrack.security.CurrentDateBean

    for question 1 the name of the class CurrentDateBean
    actually has nothing to do with the el expression
    uix.data.currentDate.time. The currentDate part of the
    el expression is coming from the method data provider part
    of your page:
    <data name="currentDate">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    so if you changed the name of the data provider to "foo":
    <data name="foo">
    <method class="yourpackage.DataDemo"
    method="getCurrentDate"/>
    </data>
    your el would look like this:
    uix.data.foo.time
    by the way the uix.data part tells UIX to look for
    a <data> element define in the <provider> section of
    your dataScope.
    For question #2, do you have the java file
    us.mn.state.dot.apptrack.security.CurrentDateBean on
    your classpath and is it compiled? You will get that
    warning if it is not on your classpath.
    Also you are incorrectly interpreting the example. What
    you are doing is trying to reference the actual bean
    object and its getTime() method. What you want to do
    is write a method data provider that returns your
    CurrentDataBean. so uix.data.currentDate would return
    a CurrentDateBean instance object. the .time part of the
    el expression would tell UIX to look for a method named
    getTime() and use that value.
    let me know if you have any more questions.

  • File Upload Example in ADF Development Guide

    I tried to upload a file using ADF as described in Development Guide. I have taken a <af:inputFile> component as described.
    <af:inputFile label="#{res['srfileupload.uploadlabel']}"
    valueChangeListener="#{backing_SRFileUpload.fileUploaded}"
    binding="#{backing_SRFileUpload.srInputFile}"
    columns="40"/>
    [Page 620]
    Now, what is the type of that variable "srInputFile" in the backing bean?
    Is there any full written code for this ADF Development Guide example? Where from can I download that?

    All the needed code is on page 617 of the ADF Dev Guide 10.1.3
    http://download.oracle.com/docs/pdf/B25947_01.pdf
    It is also located in the SRDemo ADF Tutorial support files
    http://download.oracle.com/otndocs/products/jdev/10131/ADF_tutorial_setup.zip

Maybe you are looking for

  • Invoke secured WS from BPEL

    Hello, My problem is: I have deployed a composite application where the interface is Web Service with Policy wss_username_token_service_policy. I want to invoke that web service from another composite application through BPEL. In other words invoke s

  • % in JSP url

    I need to have JSP accept un encoded URL with chars like %. Is there anyway I can do it ? See the difference between http://www.google.com/search?q=%+in+url (it works) and http://onesearch.sun.com/search/developers/index.jsp?qt=%+in+url (doesn't work

  • Disk information gatherring

    Dear everybody In hardware field, how to get the disk information in Solaris.Such as manufacture, productnumber, size, etc.. Thank you very much.

  • Error -50-Preferences Not Saved, Etc.

    I have a few Photo Ipods and for whatever reason none of them will now sync with Iphoto. I have reset and restored them all, but whenever I start syncing them, I get an error message saying it is an unknown error and cannot sync. Right after that I g

  • Since I installed ios5.1 on my iPad, I no longer can print to my Epson printer. Can't find any mention of printing in settings.

    How can I get my iPad to print again after upgrading to ios5.1?