Sample files for Oracle Forms and ADF Faces integration

8 June 2007 at 22:26 CEST | In Forms, Oracle, Web components |

A bit later as planned, I just uploaded the sample files of my concept of integrating Oracle Forms and Oracle ADF Faces. These files go hand-in-hand with the Step-by-Step How-To Guide I published earlier. After completing each chapter of the guide I created a file-set with the status of the project. While I was at it I also updated the Step-by-Step guide itself. The revision notes are included in the guide.

Please read the README included in each file-set for installation instructions. Notice that the installation instructions differ per file-set, so be sure to use the instructions from the README that came with the set you are installing.

If you just want to have a look at the finished product and inspect the code, use the last file-set. If you want to follow the Step-by-Step guide you can start wherever you want. You could start from the beginning. If you’re familiar with both Oracle Forms and Oracle ADF Faces, you could start with the set named “ViewController Complete”.

Here are the links and descriptions for all the file-sets:

  • Form Complete - Files after completing chapter 5 “Create Orders Form”. This set just contains the first simple version of an order entry Oracle Form form.
  • J2EE Model Complete - Files after completing chapter 6 “Create J2EE Model project”. This adds a JDeveloper project to the file-set that contains the ADF Business Components project.
  • ViewController Complete - Files after completing chapter 7 “Create ViewController project”. This adds a first version of the ViewController project to the JDeveloper workspace with two basic ADF Faces pages. If you’re familiar with Oracle Forms and ADF Faces, you can use this file as a starting point for the How-To guide. Up until know nothing has been done for the integration of Oracle Forms and Oracle ADF Faces. It has all been preparation. The next chapters are the real integration.
  • Applet Included - Files after completing chapter 8 “Include the Forms applet”. This adds the Oracle Forms applet to one of the ADF Faces page by using an af:regionDef cmponent.
  • Inbound Javascript API - Files after completing chapter 9 “Setup Inbound JavaScript API”. This adds the inbound JavaScript API feature which is a key component of the solution.
  • Outbound Javascript API - Files after completing chapter 10 “Setup Outbound JavaScript API”. This adds the outbound JavaScript API feature to the project.
  • Applet Reused - Files after completing chapter 11 “Suspend and reuse Forms applet”. This added the feature of suspending the Forms applet when navigating away from the web page and restoring it when returning to the page which embeds an Oracle Forms form.
  • End Result - Files after completing the entire Step-by-Step guide. If you don’t feel like doing the whole guide, you could just as well take this file-set, install it, run it and have a look.

There is a separate page with more information on the concept of integrating Oracle Forms and Oracle ADF Faces (or any other web technology)

9 Comments

TrackBack URI

  1. Wilfred,

    I liked the presentation of the concept at AMIS in may. Great to see that the examples are now online.

    Regards,

    Mark

    Comment by Mark — 8 June 2007 #

  2. Hi,we find your blog from OTN,what you describe is the purpose we are trying to archive.We are researching your solution now,but it seems that you may forget the js file:forms_ie.js,where could i get it?
    Thank you!

    Comment by james — 13 June 2007 #

  3. Hi James,

    The file is included in Application Server patch 10.1.2.2 which can also be used to upgrade a Developer Suite 10.1.2.0.2 installation. If you download the sample files, the original file is also included in the copy-and-paste.txt file.

    I’ll update the installation instructions in the readme.txt to include the creation of this file if you’re not running 10.1.2.2.0.

    Thanks for the heads up and good luck researching the solution.

    Comment by wilfred — 13 June 2007 #

  4. Thanks

    Comment by james — 13 June 2007 #

  5. I’ve just uploaded the updated sample files to include the forms_ie.js file if you’re not using Developer Suite 10gR2 patchset 2 (10.1.2.2.0)

    Comment by wilfred — 13 June 2007 #

  6. Nice work Wilfred,
    What kind of implications this deployment has in terms of licenses ?
    What kind of licenses are needed to deploy this.

    Comment by Sokol Sinani — 28 June 2007 #

  7. Since you’re still using Oracle Forms, you still need an Oracle Forms license. You can buy a Oracle Forms and Reports only license. This however does not allow you to deploy an ADF Faces application to the OC4J container shipped with this install.

    In the end you have a number of options:

    1. Buy an Oracle Application Server Enterprise Edition (currently listed for $30k) which includes Oracle Forms and allows you to deploy ADF Faces web applications.
    2. Buy an Oracle Forms and Reports only license to run Forms (currently listed for $20k) and buy a separate license for Oracle Application Server Java Edition (listed for $5k) to run your ADF Faces appliocation
    3. Buy an Oracle Forms and Reports only license ($20k) an Oracle Toplink and ADF license (listed for $5k) to deploy your ADF Faces application on a non-Oracle application server
    4. Buy an Oracle Forms and Reports only license ($20k) and use a web technology that does not require an ADF license (e.g. vanilla JSF, PHP, .Net, etc)

    Comment by wilfred — 28 June 2007 #

  8. Hi
    I have been trying to include a form within a webpage following your step by step guide. I have executed the instructions till chapter 8. But I am unable to see the form on the page. But it is not giving me any errors as such.

    When I copy and paste the contents for region-metadata.xml an error is shown “Element attribute not expected.”

    The following are the versions I am using

    JDeveloper: 10.1.3.1.0.3984
    Oracle DevSuite FormBuilder:10.1.2.0.2
    Sun JRE : j2re1.4.2_17

    I am pretty new to both forms and ADF faces and hence have no clue what is going wrong.Please let me know if you need more details to offer any help.

    Comment by JS — 12 May 2008 #

  9. Hi Wilfred,

    I followed the step by step guide and also cannot see the Oracle Form. I verified my changes to make sure that I did all the steps mentioned in the guide correctly. The only thing I see is the error mentioned above in the region-metadata.xml file. Is there a typo/mistake in the instructions for this file?

    <!DOCTYPE faces-config PUBLIC
    “-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN”
    “http://java.sun.com/dtd/web-facesconfig_1_1.dtd”[

    ]>

    com.oracle.demo.FormsAsWebComponent.regions.oracleForm
    oracle.adf.view.faces.component.UIXRegion

    /oraFormsRegion.jspx

    formModuleName
    java.lang.String
    true

    Error(15,15): : XML-20148: (Error) Invalid element ‘attribute’ in content of ‘component’, expected elements ‘[component-extension]’.

    Thanks,

    Azeem.

    Comment by Azeem — 19 October 2009 #

Sorry, the comment form is closed at this time.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.