ADFUtils / JSFUtils for Oracle JDeveloper 11 g 2 Cookbook

Hi all

You might have heard and read very probably yet another great book on Oracle ADF and JDeveloper. Now a days I busy to read her recipes.

The author questions download the latest version of FOD here for classes ADFUtils and JSFUtils , located in the SupplierModule\ViewController\src\oracle\fodemo\supplier\view\utils directory level. I downloaded the latest project FOD and extract the files, but there is not SupplierModule within the project. I tried the project and got these loacted files to the StorefrontUI directory and these classes added to the recipe.

I thought that the recipe is made... but it is not the case...

While practitioners using a framework of actions to support generic bean recipe, the code contains a call to ADFUtils.hasChanges () is in error and it seems that either I'm using the wrong version of the ADFUtils/JSFUtils or downloaded the wrong FOD project where no SupplierModule is present.

I'm stuck now and can not continue...

Anyone with ADFUtils/JSFUtils with all methods used throughout the book?
...
Or a link to the right project FOD
...
Please help and it will be highly appreciated.

Thank you
Best regards
Bilal

Hi Bilal,

Firstly thank you for your good comments on the book :)

Now regarding the problem you are experiencing: hasChanges() is not part of the ADFUtils comes with the merger of the order (FOD) demo. This is a helper method that is implemented in the recipe ' * determine if the current transaction pending changes * "in Chapter 8: does not save Bakery: bean recipes. As I mentioned in the recipe by using ADFUtils/JSFUtils : "+ utility classes ADFUtils and JSFUtils, at the time of writing, are not part of any official release of JDeveloper.» "You will have to locate them, configure them and develop if necessary for your project. Thus, throughout the book, I expanded ADFUtils by adding a number of new helper methods that the book was evolving. Given that the code of the book progresses gradually from Chapter 1 to Chapter 12, you will find the full code in the last recipe (recipe 5) of Chapter 12. If you open the SharedComponents workspace for this recipe, you will find the ADFUtils as it has evolved throughout the writing of the book. For your convenience, I am also reprint hasChanges() utility method below:

    /**
     * Recipe: Determining whether the current transaction has pending changes.
     *
     * Determines whether there are changes done to the current record.
     *
     * @return true/false whether there are uncommited changes.
     */
    public static boolean hasChanges() {
        // check for dirty transaction in both the model and the controller.
        return isBCTransactionDirty() || isControllerTransactionDirty();
    }

    /**
     * Recipe: Determining whether the current transaction has pending changes.
     *
     * @return true/false whether there are pending changes in the BC.
     */
    public static boolean isBCTransactionDirty() {
        // get application module and check for dirty transaction
        ApplicationModule am = ADFUtils.getDCBindingContainer().getDataControl().getApplicationModule();
        return am.getTransaction().isDirty();
    }

    /**
     * Recipe: Determining whether the current transaction has pending changes.
     *
     * @return true/false whether there are pending changes in the controller.
     */
    public static boolean isControllerTransactionDirty() {
        // get data control and check for dirty transaction
        BindingContext bc = BindingContext.getCurrent();
        String currentDataControlFrame = bc.getCurrentDataControlFrame();
        return bc.findDataControlFrame(currentDataControlFrame).isTransactionDirty();
    }

While working on the recipe by using a generic support bean context action hasChanges() method can simply be added to the ADFUtils and just return true, i.e.:

    public static boolean hasChanges() {
        // for now return true; see recipe "Determining whether the current transaction has pending changes" for more info
        return true;
    }

Then, when you get to Chapter 8 and read the recipe to determine if the current transaction has changes pending , you can update hasChanges().

Hope this helps you continue with your "cooking" ;)

Nick

Tags: Java

Similar Questions

  • Where Oracle JDeveloper OTN harvest for December 2011?

    where is the harvest of OTN Oracle JDeveloper for December 2011?
    Oracle stops at this monthly series? :(

    It's late and merged with the January harvest.

    Timo

    Published by: Timo Hahn on 10.01.2012 09:45

    Quote from Frank...
    >
    December has been busy and short. As a result, OTN summary 2011-12-01-2012 harvest will be merged and released in the end of January 2012 framework

  • DISTINCT in the SELECT for entities instructions / views - Oracle JDeveloper 11 G

    Hi Steve,.

    I have a question on the use of DISTINCT in the SELECT for instructions
    Entities / views. Oracle JDeveloper 11G ADF / BC4J

    -It is unique-
    SELECT
    separate (GC". "" 'course_title'),
    DCM SEC_GRP_PARENT_ID,
    of 'grp_courses' GC

    -This is NOT unique, but ROWID seems to be mandatory as - PrimaryKey
    SELECT
    separate (GC". "" 'course_title'),
    DCM SEC_GRP_PARENT_ID,
    ROWID
    of 'grp_courses' GC

    How to use this query;
    SELECT
    separate (GC". "" 'course_title'),
    DCM SEC_GRP_PARENT_ID,
    of 'grp_courses' GC

    and yet still be able to use it in view / entity without a primary key or an equivalent solution.

    Thank you and best regards,

    Use the VO Assistant.

    Select (*) access read-only through SQL query

    Enter the query statement:

    SELECT
    separate (GC' '. course_title ") as course_title,.
    DCM SEC_GRP_PARENT_ID,
    of 'grp_courses' GC

    Then set the attribute "CourseTitle' as a [x] Key attribute

  • on ADFUtils / JSFUtils

    In my project, I use an ADFUtils / JSFUtils classes to get the modules of the application, display items and borrowed with links but this classes have two problems:

    1. it is not in the JDeveloper class library.
    2. it's use a ValueBindings that are deprecated.

    Is there some way to get application module, view object and connect to the bindings without using this course?

    Thank you..

    Sameh Shokry

    Sorry for my short previous reaction:

    Call the getAm() will get the appmodule for you

    EmpDeptServiceImpl am = getAm();

    Here's the code for getAm().
    private EmpDeptServiceImpl {} getAm()
    FacesContext CF = getFacesContext();
    Application app = fc.getApplication ();
    ExpressionFactory elFactory = app.getExpressionFactory ();
    ELContext elContext = fc.getELContext ();
    ValueExpression valueExp =
    elFactory.createValueExpression (elContext, "#{data.") EmpDeptServiceDataControl.dataProvider} «»
    Object.Class);
    return (EmpDeptServiceImpl) valueExp.getValue (elContext);
    }

    From there, you can call am.get

    Hope this helps

    Luke

  • Impossible to install Oracle JDeveloper on Windows 7, 'Property not found in autorun.inf CMD'

    I try to install Oracle JDeveloper 12 c on Windows 7, but I get the error 'Property CMD' not found in autorun.inf, when I run the file directly.

    CMD property not found.PNG

    If I run Oracle installer (as an administrator), I get the file "corrupted", but I think it is misleading.

    JDeveloper corrupt file.PNG

    Google search, this seems to always point to that here where it says

    CMD property not found solution.PNG

    Previously, I had a compatibility issue when installing Oracle Developer (forms, Designer, reports and JDeveloper10g), I corrected as saying that must be run on Windows XP SP2, and that did the trick. But I don't see anything about compatibility via the google search for this problem.

    When the exe file is run some tests pre - req gets run as 64-bit JVM and Swap space. The other machine may not have the pre - req.

  • Oracle Jdeveloper error on Oracle Bigdata Lite Virtual Machine

    Hi all

    I use large data Oracle lite virtual machine from the following link: Oracle Big Data VM Lite.

    I'm trying to practice the tutorial on the following link: http://www.oracle.com/technetwork/topics/bigdata/articles/intro-to-oracle-nosql-db-hol-1937059.pdf.

    When I try to run the MoviePlex project in Oracle Jdeveloper, who in turn calls Weblogic server and triggers the following error during the creation of the Weblogic domain:

    [Waiting for the field to complete the construction...]

    [08: 41:11] Creation of integrated Weblogic domain...

    [08: 41:39] integrated Weblogic domain completed successfully.

    Using the 7101 port *.

    / Home/Oracle /. JDeveloper/system11.1.1.6.38.61.92/defaultdomain/bin/startWebLogic.sh

    [waiting for the server to complete its initialization...]

    .

    .

    Arguments of memory in JAVA:-Xms512m-Xmx512m

    .

    Start mode of WLS = development

    .

    CLASSPATH=/u01/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/Middleware/patch_jdev1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/java/latest/lib/tools.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/Middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/u01/Middleware/wlserver_10.3/server/lib/webservices.jar:/u01/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/u01/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/ U01/middleware/wlserver_10.3/server/lib/XQRL.jar::/U01/connectors/OLH/jlib/*:/usr/lib/Hadoop/*:/usr/lib/Hadoop/client/*:/U01/NoSQL/kV-EE/lib/kvstore.jar:.

    .

    Unrecognized option:-jrockit

    PATH=/u01/Middleware/wlserver_10.3/server/bin:/u01/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/java/latest/jre/bin:/usr/java/latest/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib64/R/bin:/u01/Middleware/jdeveloper/jdev/bin:/usr/java/latest/bin:/home/oracle/bin:/u01/app/oracle/product/12.1.0/dbhome_1/bin:/home/oracle/scripts:/opt/bin:/home/oracle/bin

    .

    ***************************************************

    * To start WebLogic Server, use a username and *.

    * password assigned to an administrator-level user.  For *.

    * server administration, using the WebLogic Server *.

    * console in http://hostname/ReportServer: port/console         *

    ***************************************************

    from weblogic with the Java version:

    WLS starting with line:

    jrockit - /usr/java/latest/bin/Java-Xms512m-Xmx512m-Dweblogic.Name=DefaultServer-Djava.security.policy=/u01/Middleware/wlserver_10.3/server/lib/weblogic.policy-Djavax.net.ssl.trustStore=/u01/Middleware/wlserver_10.3/server/lib/DemoTrust.jks-Dweblogic.nodemanager.ServiceEnabled=true - Xverify : aucun-da-Dplatform.home=/u01/Middleware/wlserver_10.3-Dwls.home=/u01/Middleware/wlserver_10.3/server-Dweblogic.home=/u01/Middleware/wlserver_10.3/server-Djps.app.credential.overwrite.allowed=true-Dweblogic.management.discover=true-Dwlw.iterativeDev=-Dwlw.testConsole=-Dwlw.logErrorsToConsole=-Dweblogic.ext.dirs=/u01/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/u01/Middleware/patch_jdev1111/profiles/default/sysext_manifest_classpath weblogic. Server

    Error: Could not create the Virtual Machine Java.

    Error: A fatal error has occurred. Program ends.

    Unrecognized option:-jrockit

    Error: Could not create the Virtual Machine Java.

    Error: A fatal error has occurred. Program ends.

    Process is complete.

    The version of JRE installed on the virtual computer is as below:

    [oracle@bigdatalite ~] java $-version

    Java version "1.7.0_51".

    Java (TM) SE Runtime Environment (build 1.7.0_51 - b13)

    Java for 64-bit Server VM (build 24.51 - b03, mixed mode)

    [oracle@bigdatalite ~] $

    I searched on Google but also OTN but found no solution.

    Can anyone already encountered the same problem or can help, it will be highly appreciated.

    Thank you

    Bilal

    Hi Bilal,

    You can try to change the folder to remove the parameter Jrocket below...

    concerning

    Keith

    File: /home/oracle/.jdeveloper/system11.1.1.6.38.61.92/DefaultDomain/bin/setDomainEnv.sh

    Add:

    # Clearing JAVA_VM - Difficulty to remove the setting of jrockit
    JAVA_VM =""

    just before:

    If ["${JAVA_VENDOR}"! = "BEA"]; then
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    on the other
    JAVA_VM = "${JAVA_VM} ${JAVA_DEBUG} ${JAVA_PROFILE}".
    export JAVA_VM
    FI

  • What is the official reporting tool Oracle JDeveloper ADF applications.

    Hi all
    I'm on the migration of Oracle Forms and Oracle JDeveloper ADF reports.
    I have read several books on JDeveloper and ADF and I take. Now what I will use to create reports; tool Oracle to create reports, that is tightly integrated with JDveloper and ADF comparable to the relationship between Oracle Forms and Oracle reports.
    I will be grateful for your response.
    Best regards,
    Denis Ojok

    There is no tool tightly coupled with jdev. Tool of oracles of choice would be BI Publisher (I guess). However, you can use the reports jasper or any other tool to report as well.

    Timo

  • Problem with creating Web Service Client using Oracle JDeveloper

    Hi all

    I am trying to create a Web Service Client using Oracle JDeveloper. The property of the compiler of the project I updated JRE 1.4

    When I run the web service client, he gives me a lot of errors saying:
    ' Error (32.2): annotations are not supported in - source 1.4'

    I wonder why JDeveloper uses annotations even after that I set the compiler property to 1.4

    I'm following this link to create the Web service client:
    http://www.Oracle.com/technetwork/developer-tools/forms/WebServices-forms-11g-094111.html

    Any help in this regard would be greatly appreciated.

    Thank you
    Scott.

    Scott, when you run the proxy Web service in JDeveloper, you will see a bunch of jars listed in the classpath in the Journal JDeveloper window.
    All of these classes must be in the classpath of your server when the class is deployed there.
    Note that by default, I don't think they are going to be included in the JAR that you build for the proxy when you deploy.

  • What are the best free tools for Oracle DBA development?

    Hi, I have been for years production dba. I am familiar with a complete cycle of the installation of the database, configure, backup recovery, etc.

    Now my role will change soon for development dba. I have no problem to create instances. Then in the data modeling, data standardization, etc., what kind of tools I can use?

    Good suggestions, or documents that you can provide?

    Thanks in advance.

    Oracle SQL Developer Data Modeler and Oracle JDeveloper can be used for data modeling. Both of these tools are free. You can try and make your idea - they are free.
    We will be happy to receive your comments on Data Modeler.

    Philippe

  • oracle.jdeveloper.java.util.TimedLRUCache

    Hello

    Could you tell me if the oracle.jdeveloper.java.util.TimedLRUCache class is thread-safe? Also is there any alternative for this?

    Thank you
    Maury

    That the class is part of the jdev extensions api, so it would not be appropriate for general application use

    John

  • Change the port for Oracle BAM(11g)

    Hi all

    After installation, I noticed 9001 is used by another process every night.
    Then I changed it to 29001 in Weblogic and the URL BAM console in Oracle EM to http://eqlpar001.qantas.com.au:29001 too.

    Then I rebooted the server. But when I want to create the connection to BAM in the JDev11.1.1.3, I got the following error.

    Testing HTTP connection... success.
    Purpose of data of navigation... success of the trial.
    Test JNDI connection... failed.
    Processing of the header or incoming short messages has failed; nested exception is:
    java.io.InvalidClassException: oracle.bam.middleware.reportcache.ReportCacheException; incompatible local class: stream classdesc serialVersionUID =-868154888094105170, local class serialVersionUID = 1

    2/3 tests successfully.

    Anyone can advice me what I should do.

    Thank you
    Kerr

    Edited by: Kerrs 05/05/2010 14:27

    The exception is caused by an incompatibility between JDeveloper + SOA update and BAM Server version. Make sure they are at the same version level (for example 11.1.1.3.0).

    Beware that BAM requires manual configuration for the default port numbers no. Refer to the documentation for

    Oracle® Fusion Middleware Installation Guide for Oracle SOA Suite and Oracle Business Process Management Suite
    3.3 manual configuration for Oracle BAM
    3.3.1 custom Oracle BAM configuration with the Port number

    11.1.1.3.0 link: http://download.oracle.com/docs/cd/E14571_01/doc.1111/e13925/configure.htm#CACECBGC

  • Case study: reorganize an Oracle Forms application using Oracle JDevelope

    After reading http://www.oracle.com/technology/products/jdev/collateral/4gl/papers/redeveloping_forms_in_adf_11g.pdf (case study: reorganize an Oracle Forms application to help)
    Oracle JDeveloper 11 g and 11 g of OracleADF), I noticed that the Total Order field has not migrated to ADF. I want to create a summary based on a column like this field. How can I do?

    I think (without looking at the code.tables) that the order total is the sum of the of the linetotal of elements

    So in the OrdersVO, you should have a transient OrderTotal attribute that is assigned to the groovy expression ItemsVO.sum ("LineTotal").

    The syntax may not be perfect, but it's the essence of what you need.

    Concerning
    Grant

    p.s. see http://www.oracle.com/technology/products/jdev/11/how-tos/groovy/introduction_to_groovy.pdf for more details on these groovy expressions.

  • New BUG in Oracle JDeveloper 11.1.1.2.0

    The new version of Oracle JDeveloper 11.1.1.2.0 does not automatically set the id of the DBSequences.

    More than the old version... the bug is in your understanding of the way it is supposed to work ;)

    You must either a trigger in the database or writing some code in your OS to get there. Enjoy reading the developer's Guide to the merger for more information (Articles 4.10.10 and 4.12.5)

    JOhn

  • Electrodes for Oracle spatial 11.2.0.4.0

    What patches are needed for Oracle spatial 11.2.0.4.0?

    I don't know what kind of response you expect an open question...

    Simply apply the last power supply and go from there.

    Bryan

  • Is it possible to install oracle fail-safe-kind-of (active-passive) SAN replication for oracle?

    Dear Experts,

    Is it possible to configure replication of SAN (active-passive) integrated security for oracle for oracle?

    To get the RTO < 60 seconds

    • If the primary host fails, the remote site should have the option to start the oracle database.
    • Sites are geographically remote.

    SAN storage replication, can it be used in my scenario?

    • I have no option to implement oracle Data Guard as its very expensive.

    Is that what someone achieved something similar with SAN storage replication?

    • I have oracle SE.
    • It is obvious that the all-flash backup can be quick.

    What should be the strategy to have DR site get a few seconds, if the primary site failed for some reason any

    • Daily incremental backup with RMAN. And archive backup runs for every 1 minutes
    • To have the site of DR upward and running within 60 seconds, it still requires too much time to restore the database on remote site and have archive APPLIED setpoint
    • What could be the solution with san replication? RTO is 60 seconds

    Thanks and greetings

    SAN storage replication, can it be used in my scenario?

    I have no option to implement oracle Data Guard as its very expensive.

    --> If you want to use the data that it is free of CHARGE, additional license is not required for normal data guard

    --> additional license is only for the ADG

    Is that what someone achieved something similar with SAN storage replication?

    I have oracle SE.

    It is obvious that the all-flash backup can be quick.

    --> Here, I understand that if oraclle EA is going to be expensive

    --> Again, you can use manual standby

    --> What you are looking for SAN replication, you will need to check with the storage vendor

    --> If your intention is to check with oracle storage, then this may be the correct discussion room

    What should be the strategy to have DR site get a few seconds, if the primary site failed for some reason any

    Daily incremental backup with RMAN. And archive backup runs for every 1 minutes

    To have the site of DR upward and running within 60 seconds, it still requires too much time to restore the database on remote site and have archive APPLIED setpoint

    What could be the solution with san replication? RTO is 60 seconds

    --> If your intention is to check with oracle storage, then this may be the correct discussion room

    Check in this

    https://community.Oracle.com/community/Server_%26_storage_systems/storage

Maybe you are looking for

  • Mirror screen Macbook Pro, iMac 21.5

    I want to use my iMac 21.5 inches (end of 2015) as a screen of my Macbook Pro retina (2015), but were not able to do so via a cable thunderbolt. Can someone help me please?

  • Re: Satellite A100 - Webroot Internet Security seems to be internet invalid

    I hope you can help... We run with Webroot Internet Security and after the last scan, my boyfriend said that it was no longer able to connect to the internet. We run ADSL.I'm only running a Toshiba Satellite connected to internet via a linksys cisco

  • Yoga 2 start plus-nouveau!

    I just bought a brand new yoga 2 11 only 10 days ago. I used this afternoon, he closed up and left for a few hours. Tonight I tried of the wake, and it is stuck on the screen of Lenovo. After awhile, he says prepare auto repair. He lined up for 10 mi

  • Prestaties langzaam system traag opstarten wearing

    IK kan mijn MacFee firewall niet inschakelen

  • Importing large .wmv in Windows Movie Maker

    Hello It doesn't seem to be any major problem with the Windows Movie Maker program, because it is play other videos that I'm importing.  It can't import video that I converted from .mov to .wmv using Winff to 1 h. Last night he just repeated does not