Professional Documents
Culture Documents
10 Reasons To Choose ADF Faces
10 Reasons To Choose ADF Faces
Here are ten reasons that have convinced me that choosing ADF Faces and
JDeveloper 10g release 3 (10.1.3) for your Java development platform will
reduce your development and maintenance costs.
1- Simplicity
ADF Faces (that is the name of the Oracle JSF (for Java Server Faces)
components) is based on an intuitive programming model similar to Oracle
Forms and Microsoft Visual Basic to simplify Java Web development. It’s a
component model approach that uses events. ADF Faces is very easy to
learn and requires minimal Java knowledge to use it. You no longer have to
know the Java programming language since JDeveloper will generate the
code you need through its multiple wizards. JDeveloper has simple, intuitive
interfaces and provides online assistance with complete documentation and
tutorials to simplify its use and Java Web development.
2- Facility
ADF Faces is a library containing more than a hundred visual components
with events and properties. With JDeveloper, you click a component in the
component palette, drag and drop it into a Web page, modify its appearance
using properties and change its behavior defining events. For example, you
can define a “button_onclick” event that will be executed when the user
clicks the button component on the Web page at runtime. This is similar to
Forms triggers. Combined to the ADF Business Components framework
(another part of the ADF architecture), ADF Faces offers multiple out-of-the-
box unit validations that you no longer have to code, such as validating a
date format or a required field.
3- Flexibility
ADF Faces is built on an open architecture that lets you extend it easily to
address your project’s specific requirements. For example, if the component
you’re looking for is not in the ADF Faces component list, it’s possible to
create one or add an existing component from a third party. You can modify
the behavior of the framework to extract error messages and labels from a
database table (many DBs are supported) instead of using a properties file
(default behavior). You can also change the appearance of all your Web
pages in one click (using the skin feature). Combined to ADF, you get a plug
and play framework in the sense that it allows you to use your preferred
business logic or data access framework such as EJB 3.0 (Enterprise
JavaBeans) or Spring, a well-known Open Source Java framework used for
its AOP (Aspect Oriented Programming) features.
4- Reusability
Plus, if your business logic is contained in Oracle PL/SQL packages, you can
reuse it in your ADF applications by using Oracle SQL/J. This framework
generates Java classes based on PL/SQL functions, procedures and
packages, so you can easily call them in your Java application without coding
the JDBC (Java DataBase Connectivity).
Most of you have no doubt heard about SOA architectures that consist of
modeling your business services to reuse them in your enterprise. You can
easily create a business service with ADF Business Components (part of the
ADF architecture) and JDeveloper: you create a component called an
Application Module that will automatically be generated by JDeveloper. The
component will talk with your persistence layer implemented using the
business components View and Entity objects (that will also be automatically
generated by JDeveloper) for example, and will handle transaction
management and concurrency issues.
Using the Application Module properties window, you can publish it as a Web
service without coding a single line of Java code or XML. Creating business
services using ADF Business Components is very easy. Using ADF Model
(that is also part of the ADF architecture), you can bind an application
module with the ADF Faces components in a single click. By using the latest
version of JDeveloper (release 10.1.3.1 – available since October 2006), you
can orchestrate your services and create business processes (both simple
and complex) using the BPEL (Business Process Execution Language) editor
without writing a single line of Java code!
6- Usability
Creating simple, usable Web pages is also very straightforward since most
ADF Faces visual components are so easy to use. They also behave the same
way in the popular Web browsers that are currently available. You no longer
have to do extra work to make a Web page behave the same in IE and
Firefox for example. ADF Faces contains simple components (buttons, lists of
values, labels, menus, date pickers, etc.) and complete components
(master/details, search components with search results and paging
navigation, complete tables, charts, tabs, etc.) that share a common
appearance with the skin feature, which you can use to change the
appearance of all your Web pages in a single click.
7- Collaboration
8- Complete toolbox
JDeveloper has complete debugging features. You can debug your Java code
and PL/SQL code in the same transaction using the debugger. Another cool
feature is that the embedded OC4J J2EE container of JDeveloper 10g is the
same container as the one embedded in Oracle Application Server 10g. The
two of them behave identically. You can run or debug your Web application
with a single click (no extra configuration required). You can also use the
profiling tools in JDeveloper to optimize your Web application and find
bottlenecks before going into the production environment. Finally, you can
use JUnit to unit test your project’s Java classes, and JDeveloper will
automatically generate the JUnit Java classes for you.
9- Reliability
Conclusion