Beruflich Dokumente
Kultur Dokumente
Ans : Oracle Application Development Framework, usually called Oracle ADF, provides
a commercial Java framework for building enterprise applications. It provides visual and
declarative approaches to Java EE development. It supports rapid application
development based on ready-to-use design patterns, metadata-driven and visual tools.
Q2 How does ADF fall in MVC architecture?
Oracle ADF Architecture is based on the Model-View-Controller (MVC) design
pattern.MVC consists of three layers which are model layer,view layer,controller
layer.Oracle ADF implements MVC and further separates the model layer from the
business services to enable service-oriented development of applications.
The Oracle ADF architecture is based on four layers:
The Business Services layer
This layer provides access to data from various sources and handles business logic.
ADF Component comes, in this section are ViewObject, EntityObject, ViewLink,
Association etc
The Model layer
This layer provides an abstraction layer on top of the Business Services layer, enabling
the View and Controller layers to work with different implementations of Business
Services in a consistent way. ADF Component comes in this section are PageDefn,
DataBindings,DataControls (AppModuleDataControl, WebServiceDataControl)
The Controller layer
This layer provides a mechanism to control the flow of the Web application. ADF
Component comes in this section are TaskFlows(Bounded and unbounded, facesconfig.xml, adfc-config.xml)
The View layer
This layer provides the user interface of the application. ADF components comes in this
section are jsff, jspx page.
Q3 How will JDeveloper support rapid development?
Ans : Oracle ADF is an Oracle product. Ide used to develop ADF application which is
Oracle JDeveloper. This IDE is has all component which support in rapid developer
starting form designing Application using the UML to Java, Visual Designer, DataBase
development, Testing Webservices to Deployment. Most of the feature are just drag and
drop. hence this IDE become the perfect choice for ADF development. Although it bit
slow and hangs sometime but still we don't have any other option.
Q4 What are the different type of Business Component in Oracle ADF?
Ans : Different kinds of Business component support by ADF are EntityObject,
ViewObjects, ViewLinks, Association.
Q6 What is Entity Object in ADF Framework?
Ans: EnitityObject in ADF are similar to Table in database. Any number of ViewObejct
can create on single Entity.
Q6 What is ViewObejct in ADF framework?
Ans : ViewObject is represent the data collection. These view object can be created in
different ways which are as follows:
Entity Based ViewObject: These viewobejct will hold the reference of underlying
entity. These view object can hold data from single or multiple entities. While defining
Viewobject based on Entity you can select the attribute which you want to keep in entity.
SQL Based ViewObject: These ViewObejct are based on sql quarries. These
viewobejct will have underlying SQL Query. At runtime they will hold data return by SQL.
Programatic View Object: User can define the view attribute which defining
viewobejct. Data will insert programmatically into these ViewObject.
Static ViewObject : While defining user will define attribute for view and in later he has
to provide the values for those attribute. These kindof viewobejct will have fixed no of
rows.
Q7 What is Association in ADF?
Ans: Association represent the relationship between 2 and more tables like foreign key
relationship. If you create Entities from database association will automatically got created
for entity. User can also define custom association if there is no foreign-key is define in
database. In this way user can handle foreign key in ADF application and can remove
overhead from database.
Q8 What is view link?
Ans: ViewLink represent the relationship between data of same or multiple Entities or table.
It works in same manner as association work for entity. While defining the ViewLink user
can define the reference of already created association if ViewObejct based on Entity
Object else can manually select the column and define link between 2 ViewObject.
Q11 What are the different kind of resource bundle supported in ADF?
Ans: ADF support different types of resource bundle which are as follows:
Property file based (txt file which contains key-value pair)
xliff file based (xml file which contains key-value pair)
List Resource bundle
Q12 How to provide common resource bundle for entire proejct?
Ans: Go to property file of you Project and select resouce bundle
From here you can select one bundle for entire project.
Q13 How to provide separate resource bundle for each jsff/jspx?
Ans: Refer Q 12 answer there is option using that you can select One Bundle per file.
Q14 What is the difference in jspx and jsff?
Ans: jspx and jsff file are same in most of manner. Only difference is that you can run jspx
directly on browser while jsff file container which will run on browser.
between entity Object. using that relationship you can create the master details view of
data. That master details view can be Form-Form, Form-Table, Table-Table, Table-Form.
Q32 what is view criteria, how can you change view criteria at runtime?
Ans: View Criteria is defined by for effective searching of data. By using this criteria we can
created search panel which represent all queryable attribute.
For changing the view criteria at runtime you just have to make attribute as queryable true
or false. Based on that attribute will get display in the search panel at run-time.
Q33 What is ppr in ADF?
Ans: PPR means Partial Page Rendering. It means that in ADF we can refresh the portion
of page. We don't need to submit whole page for that.
Q34 What are the ADF templates how they are differ from simple jspx and jsff page?
Ans: ADF templates are the template for pages. we can place common layout in template
so whenever we create the page we will select the appropriate template. Page layout will be
consistence across the pages.
Page template can also used to have common functionality like some button so you dont
have to create them again and again.
Initialize Context: In this phase the adf page initializes the LifecycleContext
with information that will be used during the Lifecycle.
Prepare Model: In this phase ui model is prepared and initialized. In this
phase page parameters are set and methods in the executable section of the page
definition of the ADF page are executed.
Apply Input Values: This phase handles the request parameters. The values
from the HTML are sent to the server and applied to the page binding in page
definitions.
Validate Input Values: This phase validates the values that were built in the
Apply input values phase
Update Model: Validated values supplied from user are sent to ADF business
components data model
Validate Model Updates: In this phase the business components will validate
user supplied values.
Invoke Application: This phase will process the ui events stack built during the
life cycle of page and also fire navigational events
Prepare Render: This is the final phase where HTML code is generated from
the view tree.
View Object: A view object represents a SQL query and simplifies working with
its results. You use the full power of the familiar SQL language to join, project,
filter, sort, and aggregate data into exactly the shape required by the end-user
task at hand. This includes the ability to link a view object with others to create
master/detail hierarchies of any complexity. When end users modify data in the
user interface, your view objects collaborate with entity objects to consistently
validate and save the changes
An XML file, which represents the portion of the view object definition that
can be developed declaratively. This information consists of the mechanism (usually
a SQL query) that the view object uses to retrieve data from the data source, and
the way in which the columns of the SQL query map to entity attributes (which
handle actual O/R mapping). For many view object definitions, the XML file by itself
is sufficient.
A view object class, which represents an individual view object instance. View
object classes allow you to write custom methods that affect multiple rows in a
query. View object classes extend the class oracle.jbo.server.ViewObjectImpl. If
you do not need to write custom view object methods, you need not generate an
entity object classADF can use oracle.jbo.server.ViewObjectImpl directly to
represent instances of the query result set.
A view row class, which represents individual rows of the query result. View
row classes allow you to write custom methods that affect a single row of data, and
they provide typesafe accessors to retrieve and change data. View row classes
extend the class oracle.jbo.server.ViewRowImpl. If you do not need custom rowlevel methods or typesafe accessors, you need not generate a view row classADF
can useViewRowImpl directly to represent view rows.
A view definition class, which represents the query itself. View definition
classes act as Java wrappers for the XML file, so if you need special handling of the
metadata (for example, if you need to change it dynamically), you can add this
code in the view definition class. View definition classes extend the
classoracle.jbo.server.ViewDefImpl. If you do not need custom handling of your
metadata, you need not generate a view definition classADF can
use ViewDefImpl directly to wrap the metadata.
1 Attribute Mappings
Like entity attributes, the values of view attributes can be read or changed using
the methods getAttribute() andsetAttribute() in the ViewRowImpl class or by using
generated getters and setters in a custom view row class.
There are two different types of view attributes, however, for which these accesssor
methods function quite differently:
SQL-only view attributes are not mapped to entity attributes. For these
attributes, the accessor methods read values from and make changes to data in the
view object instance's cache of view rows.
Entity-derived view attributes are mapped to attributes in an entity object
definition.
For
these
attributes,
the
accessor
methods
will
call getAttribute() and setAttribute() on the relevant entity object instance. The
data will be changed within the entity collection's cache of entity object instances,
not within the view object instance's cache of view rows.
Because entity object definitions handle DML operations, attributes that will be used
to make changes to the database must be entity-derived. However, if a view object
definition will be used for data retrieval only, there is an advantage to making all its
attributes SQL-only: such view object definitions, called SQL-only view object
definitions, bypass the entity collection's cache entirely, avoiding the overhead and
resources required to create entity object instances.
row.
next() advances the current row pointer in the row iterator and returns that
hasNext() checks to make sure that the row iterator has more rows after the
current row pointer. You can use next() and hasNext() together to create a loop to
cycle through the rows in the iterator.
First() moves the current row pointer to the first row in the iterator and
returns that row.
Last() moves the current row pointer to the last row in the iterator and
returns that row.
Previous() steps the current row pointer back one row and returns that row.
hasPrevious() checks to make sure that the row iterator has more rows after
the current row pointer. You can use previous() and hasPrevious() together to
create a loop to cycle backwards through the rows in the iterator.
3 Creating and Deleting Rows
ViewObjectImpl also contains methods to create rows:
4 Keys
A key is a set of attributes that allow you to quickly retrieve one or more rows from
a view object instance's query result. Persistent view object attributes based on
primary keys are automatically part of the view object's key; you can make other
attributes part of the view object's key as well.
You can use an array containing a partial or complete list of attribute values to set
up an object of typeoracle.jbo.Key. You can then pass this object into the
5 View Criteria
View criteria are structured criteria that you can use to create searches.
View criteria are collections of view criteria rows. A view criteria row specifies
query-by-example requirements for one or more view object attributes. A view
row matches if it meets all of the requirements.
When you apply view criteria to a view object instance, the query is restricted to
return those view rows that match at least one of the view criteria rows. Effectively,
therefore, view criteria assemble a WHERE clause in conjunctive normal form: the
WHERE clause is a disjunction of conjunctions of query-by-example requirements.
View criteria are implemented by the class oracle.jbo.ViewCriteria; view criteria
rows, by the classoracle.jbo.ViewCriteriaRow.
ADF View Link: Oracle ADF view links are business components that define a
relationship between two Oracle ADF view object definitions (the "source"
and "destination" view objects) based on sets of view attributes (the
"source" and "destination" attributes) from each. These can range from
simple one-to-many relationships to complex many-to-many relationships.
This allows you to easily create master/detail relationships between data
controls in the client. For example, creating a view link between view objects
will allow you to create relationships between:
View link definitions, which consist of an XML file that defines the view link
View link instances, which are particular references to a Oracle ADF view link
definition
within
a
Oracle
ADF
application
module
definition.
View
Accessors:
Use to define the list of available view accessors on the current entity object or view
object.
View accessors are value-accessor objects in ADF Business Components. You create
a view accessor to point from a base entity object attribute or view object attribute
to
a
source
view
row
set.
The view accessor returns a list of all possible values to the attribute of the base
object.
1 Accessor
Attributes
When you create a view link definition between two view object definitions, you can
select to add accessor attributes to the source view object definition, the
destination view object definition, or both. These accessor attributes function much
like the accessor attributes to associations:
Then suppose the current row of DepartmentView changes. The row iterator
in details will not change: it will still contain details of the original row.
2 Cardinality:
Like associations, view link definitions can be one-to-one, one-to-many, or manyto-many. One-to-one and one-to-many view link definitions can either be based on
associations or they can use attribute matching the way associations do. Many-tomany view link definitions must be based on many-to-many associations.
Q: ADF 10g navigation rules example in faces-config.xml file.
Ans: Navigation rules tells JSF implementation which page to send back to the
browser after a form has been submitted. We can declare the page navigation as
follows:
<naviagation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</naviagation-rule>
This declaration states that the login action navigates to /welcome.jsp, if it occurred
inside /index.jsp.
Q: Setting the range of table
A: <af:table rows=#{bindings.LoggedInUserServiceRequests.rangeSize}/>
Q : Which component in ADF BC manages transaction ?
A : Application Module, manages transaction.
Q : Where is that we write business rules/validations in ADF and why?
A : We should ideally be writing validations at Entity Object level, because they
provide highest degree of reuse.
Q
:
Can
Service
Methods
A : Yes, Service Methods can Return type Void
return
Methods?
type
Q
:
Can
Service
Methods
return
Complex
Data
A : No, service methods can return only primitive/scalar data types.
Void?
types?
none
backingBean
request
view
pageFlow
session
application
Memory Scope for ADF Managed Beans
Scope
Description
application
The application scope lasts until the application stops. Values that
you store in a managed bean with this scope are available to every
session and every request that uses the application.
Avoid using this scope in a task flow because it persists beyond the
life span of the task flow.
session
The session scope begins when a user first accesses a page in the
application and ends when the user's session times out due to
inactivity, or when the application invalidates the session.
Use this scope only for information that is relevant to the whole
session, such as user or context information. Avoid using it to pass
values from one task flow to another. Instead, use parameters to
pass values between task flows. Using parameters gives your task
flow a clear contract with other task flows that call it or are called by
it. Another reason to avoid use of session scope is because it may
persist beyond the life span of the task flow.
pageFlow
view
Use this scope for managed bean objects that are needed only within
the current view activity and not across view activities. It defines
scope for each view port that ADF Controller manages, for example,
a root browser window or an ADF region.
The life span of this scope begins and ends when the
current viewId of a view port changes. If you specify view, the
application retains managed bean objects used on a page as long as
the user continues to interact with the page. These objects are
automatically released when the user leaves the page.
request
Use request scope when the managed bean does not need to persist
longer than the current request.
backingBea
n
Scope
Description
used to maintain state.
Use this scope if it is possible that your task flow appears in two ADF
regions on the same JSF page and you want to isolate each instance
of ADF region.
Keep immediate=true
A very common way to skip validation is by keeping the value for immediate
attribute as 'true' for the UIComponents. Immediate attribute allow processing of
components to move up to the Apply Request Values phase of the lifecycle.
scenario:
While canceling a specific action, system should not perform the validation. One
possible way to achieve this is by keeping immediate=true associated with UI
element. To know more abut this feature, please refer this wiki.
Sometimes you may need to update UI controls with model data as part of the
immediate action. Make sure that you call resetValue() on the UIInput in this
scenario. This causes to reset the submitted value and would ensure that UI gets
updated with right value from the model.
SkipValidation
2. This property doesnt have any effect on the client side validation (even if it is
generated using the EL bound with model layer)
SkipValidation can be located as part of the root node of the page definition file.
a. SkipValidation=true
Setting SkipValidation property to true will bypass the ADF Model validation. In
this case validation happens only when you commit the transaction( i.e: when you
call transaction.commit()). Please note that SkipValidation skips only the entity
level validation. The attribute level validation fire irrespective of the value for the
boolean flag
Scenario:
This is useful where you need to delay the validation till the point where transaction
gets committed to Database. There are cases where business data needs to be
captured in bulk. A typical example would be capturing transaction data using a grid
form/tabular list. Business user must be able to key in values in any order. i.e. even
without completing the data capture for the current record, user must be able to
move to next set of records. Here model level validation needs to be delayed till we
really save the data. SkipValidation=true is the right option to achieve this sort of
use case, which does the validation across records, only while committing the
transaction.
b. SkipValidation=custom
Scenario:
This gives more control to the developer while validating the data. Only validates(or
rather
executes)
what
is
given
in
custom
implementation
for
BindingContainerValidator. It is much useful in complex business scenarios where
developer needs finer control on validation.
c. SkipValidation=skipDataControls
skipDataControls means that it will skip the data control level validation (also
known as Transaction Level validation) and instead only will validate data in the row
or rows which got updated through iterator in the current binding container.
Scenario:
The property is very much useful while dealing with below given scenarios.
2. Same page is making use of multiple Data Controls. Here commit on one Data
Control should not trigger validation on other Data Controls defined in the same
page.
d. SkipValidation=false
This is the default value for SkipValidation, apparently this setting just ensures the
normal flow for validation during form submission.
Cannot
be
used
for
insert,
update,
or
delete.
. Use SQL-based view objects for query only views, which do not need the
functionality of entity objects.
salary
increases.
Q.What is view link? How to create it? What is idea behind it?
A: View Link is an active link between view objects.You can create view
links by providing the Source & destination VO attributes.
Oracle ADF view links are business components that define a relationship between
two Oracle ADF view object definitions (the "source" and "destination" view objects)
based on sets of view attributes (the "source" and "destination" attributes) from
each.
These can range from simple one-to-many relationships to complexmany-tomany relationships. This allows you to easily create master/detail relationships
between data controls in the client. For example, creating a view link between view
objects will allow you to create relationships between:
1.
2.
Based
on
EO
Association
For
example,
suppose
you
had
the
following
view
object
definitions:
SELECT
OrdersView, containing
FROM
CUSTOMERS
the
query:
You could then use CustOrdLink conjunction with a row fromCustomersView (for
example, the row for Customer 101) and all of OrdersView to return the rows from
the query
SELECT * FROM ORDERS WHERE 101 = ORDERS.CUSTOMER_ID
JDeveloper will create the parametrized query for you based on the attributes you
select. If you do not change this query, you can make the view link
bidirectional. This will switch the roles of the source and destination attributes.
For example, if you make CustOrdLink bidirectional, you can use it in conjunction
with a row from OrdersView (for example, a row for an order placed by Customer
101) and all of CustomersView to return the rows from the query
Q.
What
is
Control
hint?
A: Control hints are additional attribute settings that the view layer can use to
automatically display the queried information to the user in a consistent, localesensitive
way.
JDeveloper manages storing the hints in a way that is easy to localize for multilingual
applications.
Used to set: Parameters in screenshot
Q:
What
are
UI
Hints
&
List
UI
Hints?
A:
UI Hints: VO -> Query -> Create or Edit view criteria -> click Tab UI Hints
Use to specify the default properties for a query search components runtime usage
of individual named view criteria. Named view criteria that you create for view
object collections can be used by the web page designer to create query-byexample search forms.
List
UI
Hints: Open
view-object
->
List
UI
Hints
Use to specify default LOV (list of values) hints when you want the LOV-enabled
attributes of other view objects to inherit the list UI hints from the current view
object. Use to specify the type of LOV (list of values) component and one or more
attributes to display in the LOV for the attributes that you will LOV-enabled.
Additionally, you can set properties of the LOV component to customize it behavior
in the user interface.
Q: What are the security application layers & how they handled in Oracle
ADF?
A: Binding context is a runtime map between the data controls and page
definition of pages in the application which is used to access the binding layer. It is
accessible through the EL expression in your jspx pages.
Method Bindings: This binding is used when you want to use custom methods to
be executed.
Attribute Bindings: This is the binding to retrieve the value of a single view
attribute in the iterator bindings current view row. For eg;
#{bindings.CustomerId.InputValue}
Tree Bindings: This is used for tables, tree-tables and trees. It is used to expose
rows of a table in the iterator bindings current range. Eg; All Customers#{bindings.AllCustomers.labels.CustomerId}
Action Bindings: This binding type is used when buttons or command links are
dropped on the user interface and require an action to be performed on them. We
can use data control operations on them, for eg, Create, Delete, First, Last,
Commit, Rollback etc.
Iterator Binding: This binding is created by the application to access the ADF
binding context. It contains a reference to the page bound data collection, helps
access it and iterates over its data objects.
Iterator binding, one per accessor attribute that your page or panel displays. Iterates
over the business objects of the data collection and maintains the row currency and state.
Value bindings, one for each data-bound UI component. Provides access to data.
Action binding, specifically defined for a button component. Provides access to
operations defined by the business object.
Value Binding Types:
1. Attribute Value Binding
2. Boolean Value Binding
3. List Value Binding
4. Range Value Binding
5. Scroll Value Binding
Actions that typically operate on all data collections in the current web page's binding
context (such as Commit and Rollback) in the Operations folder at the root level of the
hierarchy.
Operations on a specific data collection (for example, MyView1). Data collection-specific
operations (such as Create and Delete) appear in the Operations folder as child nodes of the
collection in the Data Control Palette.
Q: Write code to access the current row and or the view object inside your
bean.
A: code to access the current row and or the view object inside your bean:
BindingContainer bc =
BindingContext.getCurrent().getCurrentBindingsEntry();
DCBindingContainer dcbc = (DCBindingContainer) bc;
DCIteratorBinding lBinding =
dcbc.findIteratorBinding("EmployeesViewIterator");
EmployeesViewRow row = (EmployeesViewRow) lBinding.getCurrentRow();
EmployeesView view = (EmployeesView) lBinding.getViewObject();
You have to change the iterator name 'EmployeesViewIterator' to the name of your
VO iterator (look it up in the page bindings) and the classes Employees.
Q: How many types of VOs we can create in Oracle ADF?
A: There are four types of VOs we can create as shown in below image, select radio
button & create VO.
You can also use the Create View Object wizard to create the attributes based on
data from a comma-separated value (CSV) file format like a spreadsheet file. The
wizard will attempt to create the attributes that you define in the wizard with data
from the first row of the flat file.
Check below image- circled import option is to import comma separated .cvs file or
other file.
therefore, view criteria assemble a WHERE clause in conjunctive normal form: the
WHERE clause is a disjunction of conjunctions of query-by-example requirements.
View criteria are implemented by the class - oracle.jbo.ViewCriteria;
view criteria rows, by the classoracle.jbo.ViewCriteriaRow.
View criteria is like querying a SQL query.
Sometimes you need dynamic ViewCriteria that you can handle at runtime ,
here is the solution ,you can create and apply ViewCriteria ProgrammaticallySample UseCase
You typically will not need to change this default setting. However it is important to
understand that it is enabled by default since it effects how validation exceptions
are thrown. Since the Java language and runtime only support throwing a single
exception object, the way that bundled validation exceptions are implemented is by
wrapping a set of exceptions as details of a new "parent" exception that contains
them. For example, if multiple attributes in a single entity object fail attribute-level
validation, then these multiple ValidationException objects will be wrapped in
aRowValException. This wrapping exception contains the row key of the row that
has failed validation. At transaction commit time, if multiple rows do not
successfully pass the validation performed during commit, then all of
the RowValException objects will get wrapped in an enclosing TxnValException
object.
When writing custom error processing code, you can use the getDetails() method of
the JboException base exception class to recursively process the bundled
exceptions contained inside it.
Note: All the exception classes mentioned here are in the oracle.jbo package.
Task flows pass the control not only between JSF pages, but also between other
activities, for instance method calls or other task flows.
Note:
In fusion web application navigation and declaration of managed bean are taken
care by adfc-config even though faces-config.xml file is required for JSF-related
functions such as defining global resource bundles and data type converters.
Difference between JSF Page Flow & ADF Task Flow:
JSF Page Flow:
1.
2.
3.
4.
5.
1.
2.
3.
4.
5.
1.
2.
3.
4.
5.
6.
7.
8.
Application - The application scope lasts until the application stops. Values
that you store in a managed bean with this scope are available to every session and
every request that uses the application.
Avoid using this scope in a task flow because it persists beyond the life span of the
task flow
Session - The session scope begins when a user first accesses a page in the
application and ends when the user's session times out due to inactivity, or when
the application invalidates the session.
Use this scope only for information that is relevant to the whole session, such as
user or context information. Avoid using it to pass values from one task flow to
another. Instead, use parameters to pass values between task flows. Using
parameters gives your task flow a clear contract with other task flows that call it or
are called by it. Another reason to avoid use of session scope is because it may
persist beyond the life span of the task flow.
pageFlow - A managed bean that has a pageFlow scope shares state with
pages from the task flow that access it. A managed bean that has a pageFlow scope
exists for the life span of the task flow.
If another task flows page references the managed bean, the managed
bean creates a separate instance of this object and adds it to the pageFlow scope of
its task flow.
You can specify page flow scope as the memory scope for passing data between
activities within the ADF bounded task flow. Page flow scope defines a unique
storage area for each instance of an ADF bounded task flow. Its lifespan is the ADF
bounded task flow, which is longer than request scope and shorter than session
scope.
When one task flow calls another, the calling task flow cannot access the called task
flows pageFlow scope. This means, for example, that a UI component on a page
referenced by a task flows view activity cannot access the pageFlow scope
of another task flow even if this task flow is an ADF region embedded in the same
page as the UI component.
View - Use this scope for managed bean objects that are needed only within
the current view activity and not across view activities. It defines scope for each
view port that ADF Controller manages, for example, a root browser window or an
ADF region.
The life span of this scope begins and ends when the current viewId of a view port
changes. If you specify view, the application retains managed bean objects used on
a page as long as the user continues to interact with the page. These objects are
automatically released when the user leaves the page.
Request Use request scope when the managed bean does not need to
persist longer than the current request.
Backing Bean - A backing bean is a convention to describe a managed bean
that stores accessors for UI components and event handling code on a JSF page. It
exists for the duration of a request and should not be used to maintain state.
Use this scope if it is possible that your task flow appears in two ADF regions on the
same JSF page and you want to isolate each instance of ADF region.
Well-defined boundary :An ADF bounded task flow consists of its own set
of private control flow rules, activities, and managed beans. A caller requires no
internal knowledge of such things as page names, method calls, child bounded task
flows, managed beans, and control flow rules within the bounded task flow
boundary. Input parameters can be passed into the bounded task flow, and output
parameters can be passed out on exit of the bounded task flow. Data controls can
be shared between task flows.
Single point of entry : An ADF bounded task flow has a single point of
entry, a default activity that executes before all other activities in the task flow.
Page flow memory scope : You can specify page flow scope as the
memory scope for passing data between activities within the ADF bounded task
flow. Page flow scope defines a unique storage area for each instance of an ADF
bounded task flow. Its lifespan is the ADF bounded task flow, which is longer than
request scope and shorter than session scope.
Addressable :You can access an ADF bounded task flow by specifying its
unique identifier within the XML source file for the bounded task flow and the file
name of the XML source file. For more information.
In addition, you can use task flow templates to capture common behaviors for
reuse across different ADF bounded task flows.
Reentry :You can specify options on the bounded task flow that determine
whether or not it can be reentered.
On-demand loading of metadata :ADF bounded task flow metadata is
loaded on demand when entering an ADF bounded task flow.
Security: You can secure an ADF bounded task flow by defining the
privileges that are required for someone to use it.
Bounded TaskFlow : Bonded taskflow require the page on which they will
consume.
An ADF bounded task flow is used to encapsulate a reusable portion
of an application. A bounded task flow is similar to a Java method in that it:
1.
2.
3.
4.
5.
Define taskflow
Open new project where you want to consume the task flow.
go to component palate You will find your jar name, select it.
Drag drop your taskflow as region on jsff/jspx page and run an application
Q: What are different scope of adf taskflow?
Ans: Isolate/Shared
Shared scope will share data among the multiple instance of taskflows while
Isolated doesn't.
Q: How can you force ADF taskflow to use new transaction everytime
taskflow is called?
Ans: Go taskflow overview and you will find Share data controls with calling task
flow option as shown below
Select always begin new transaction fron dropdown
Q: How to use same transaction in ADF taskflow?
Ans Select Always Use existing Transaction option.
Q How can you pass parameter to adf taskflow?
Ans: Go to overview select parameters link it will show screen like
Here you can add multiple parameter which you want to pass to takflow while
loading it.
flow in adf?
called anytime from any page of that
define the control flow once in
action event.
If the bounded task flow contains fragments, the menu item will be Convert to
Task Flow with Pages.
Q: How to use same value in multiple activities of a Task Flow?
Ans:
Using Shared memory scope (for example, page flow scope) enables data to
be passed between activities within the task flow.
Page flow scope defines a unique storage area for each instance of an ADF
bounded task flow.
Any managed beans you decide to use within task-flow can be specified in
page flow scope, so are isolated from the rest of the application
Q: What are entry points for task flow?
Ans: This task flow contains a number of view activities that are all entry points
to the application.
Q: How can one bounded task flow can call another?
Ans:One task flow can call another bounded task flow using a task flow call activity
or a URL.
Q: How to identify default activity in bounded task flow?
Ans: A green circle identifies the default activity in a task flow
diagram.
The first activity that you add to a new ADF bounded task flow diagram is
automatically identified as the default activity.
You can also right-click any activity in the task flow diagram and choose Mark
Activity > Default Activity.
The default can be any activity type and it can be located anywhere in the control
flow of the ADF bounded task flow.
To find the default activity, right-click anywhere on the task flow diagram and
choose Go to Default Activity.
Task Flow Call: Calls a bounded task flow from an unbounded task flow or
another bounded task flow.
Task Flow Return: Identifies when a bounded task flow completes and
sends control flow back to the caller. (Available for bounded task flows only).
URL View: Redirects the root view port (for example, a browser page) to
any URL-addressable resource, even from within the context of an ADF region.
View: Displays a JSF page or page fragment. Multiple view activities can
represent the same page or same page fragment.
Control Flow Case: Identifies how control passes from one activity to the
next in the application.
Wildcard Control Flow Rule: Represents a control flow case that can
originate from any activities whose IDs match a wildcard expression. For example,
it can represent a control case from-activity-id containing a trailing wildcard such as
foo*.
Q. If you want to show information to end users in a secondary browser,
how will you show?
Ans: Use dialogs option from activities.
Examples:
1. you want to display help information to end users to assist them with a task in
the primary browser window
Page templates (.jspx): By creating page templates, you can create entire
page layouts using individual components and page fragments. For example, if you
are repeatedly laying out some components in a specific way in multiple JSF pages,
consider creating a page template for those pages. When you use the page
template to build your pages, you can be sure that the pages are always consistent
in structure and layout across the application.
Using default layouts or creating new we can create page templates.
Ex. Using <f:facet> we can create page templates with header, footer, top, left &
right regions etc.
The region tag allows dynamic content to be included in a master page. This tag is
bound to a RegionModel. The model decides which viewId is to be included. The
model has methods that allow pre and post processing of an include. See the
javadoc for oracle.adf.view.rich.model.RegionModel.
Regions in release 11g are reusable page flows. They have their own navigation
rules, managed beans and ADFm page definitions. Each page within the region is a
page fragment (jsff). Do not confuse the 11g af:region component with the 10.1.3
or Trinidad region. The 10.1.3 and Trinidad region components are single page
fragments that do not have multiple pages, navigation rules nor managed beans.
The 10.1.3 region is similar to the 11g page templates and declarative components.
The <af:region> will not stretch all included children, but it will stretch an included
child if all of the following are true:
Q: What is <f:facet> ?
A: This tag is used to add a facet to the component means this tag is used
to add its child as a facet of the closest parent component.
With the help of this tag we can add header and footer facet to the container
component like panelGroup.
This tag contains one attribute :
name : This is the required attribute and is used to set the name of the facet.
"header" and "footer" values can be used for this attribute.
Q : How to skip validation in ADF?
A : Add immediate="true" to the button. This way all input fields which don't
have immediate="true"will be skipped in processing.
This method mainly used for view layer validation skip.
Q: What is setActionListener?
Ans: SetActionListener The setActionListener tag is a declarative way to allow
an action source ( , , etc.) to set a value before navigation. It is perhaps most
useful in conjunction with the processScope EL scope provided by ADF Faces, as it
makes possible to pass details from one page to another without writing any Java
code. This tag can be used both with ADF Faces commands and JSF standard tags.
Exmaple of this can be as follows. Suppose we have a table employee.We want to
fetch the salary of an employee of some particular row and want to send this salary
in Next page in process scope or request scope etc.So using this we can do this.
This setActionListener will pick value of salary of that row and store this value into
salary1 variable.So anyone can use this salary as processScope.salary1.
It is very simple to use and very useful.
The setPropertyListener tag allows you to set property values onto a scope, and
also allows you to define the event the tag should listen for. For example, when you
use the setPropertyListener tag with the type attribute set to action, it provides a
declarative way to cause an action source (for example, commandButton) to set a
value
before
navigation. You
can
use
the pageFlowScope scope
with
the setPropertyListener tag to pass values from one page to another, without
writing any Java code in a backing bean. For example, you might have one page
that uses the setPropertyListener tag and a command component to set a value in
the pageFlowScope scope, and another page whose text components use
the pageFlowScope scope to retrieve their values.
You can also use the pageFlowScope scope to set values between secondary windows
such as dialogs. When you launch secondary windows from, for example,
a commandButtoncomponent,
you
can
use
a launchEvent event
and
the pageFlowScope scope to pass values into and out of the secondary windows
without overriding values in the parent process.
Tip: Instead of using the setActionListener tag (which may have been used in previous
versions of ADF Faces), use the setPropertyListener tag and set the event type to action.
Note: If your application uses ADF Controller, then you do not have to manually
clear the scope.
1.
2.
3.
4.
5.
6.
To
get
a
reference
to
the pageFlowScope scope,
use
the org.apache.myfaces.trinidad.context.RequestContext.
getPageFlowScope() method.
For example, to retrieve an object from the pageFlowScope scope, you might use the
following
Java
code:
import java.util.Map;
import org.apache.myfaces.trinidad.context.RequestContext;
...
Map pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
Object myObject = pageFlowScope.get("myObjectName");
7.
To clear the pageFlowScope scope, access it and then manually clear it.
For example, you might use the following Java code to clear the scope:
8.
</af:inputText>
Action used for page navigation with faces-config.xml or adfconfig.xml, ActionListner is used for event handling, to retrieve data & other
operations, its used with backing beans or bindings.
Action use - for page navigation, ActionListner use - check box, drop down
box.
Q: What is a view scope?
A: view-state allocates a new viewScope when it enters. This scope may be
referenced within the view-state to assign variables that should live for the duration
of the state. This scope is useful for manipulating objects over a series of requests
from the same view.
product from the list and click on submit, the other portlet displays the details of
the respective product.
[ ]
The Oracle Application Development Framework (Oracle ADF or just ADF) is a met
that fulfills the core requirements for a framework as outlined in the preceding sectio
integrates a mix of subframeworks to provide the key functions for object-relational
other forms of service access, data bindings, and user interface, along with the func
hold it all together (reference: http://www.amazon.co.uk/Oracle-JDeveloper-11g-Han
This chapter describes the architecture and key functionality of the Oracle Applicatio
[ ]
Check: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/intro.htm
[ ]
Identify sources of additional information about ADF and ADF Business Component
Check "Resourses" in the bottom of the blog and also posts with R
Check: http://www.oracle.com/technetwork/developer-tools/jdev/jdeveloper11g-data
[ ]
[ ]
[ ]
Manage transactions
More on http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcintro.h
[ ]
The following diagram illustrates the relationship among application module, entity o
[ ]
Identify the types of components that cooperate to provide the business service imp
Entity object
An entity object represents a row in a database table and simplifies modifying its da
View object
A view object represents a SQL query and simplifies working with its results. You us
Application module
An application module is the transactional component that UI clients use to work wi
Check: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcdcpal.h
http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcdcpal.htm#BB
[ ]
Create a view object that can be used for performing a query in a Web application
[ ]
[ ]
[ ]
[ ]
Use the Create Entity Object wizard to generate entity objects from database table
[ ]
[ ]
[ ]
[ ]
The domain business objects involved. To answer the question, "What core busines
The user-oriented view of business data required. To answer the questions, "What s
The identified domain objects involved in each use case help you identify the requir
The application module is the "work unit" container that includes instances of the re
[ ]
[ ]
Use the Create Application Module wizard to define the data model for an applicatio
[ ]
[ ]
[ ]
[ ]
Declaratively modify the default behavior of view objects, entity objects, and applica
[ ]
[ ]
Generate Java classes for business components to modify default behavior program
[ ]
[ ]
[ ]
Explain the benefits of adding service methods at the application module level (rath
[ ]
[ ]
Modify a view object's client code to add a new employee to the employees view ob
[ ]
[ ]
[ ]
Identify the other non-declarative validation options and when they might be used
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Understanding UI Technologies
[ ]
[ ]
Explain how Java has come into widespread use as a language for developing We
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Describe the types of data-bound components that can be added to a JSF page
http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcdcpal.htm#BA
http://xmlandmore.blogspot.com/2010/05/oracle-adf-bindingcontext-and.html
http://xmlandmore.blogspot.com/2010/05/action-bindings-and-method-bindings-in.h
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Internationalize the user interface so that the application can be used in multiple loc
[ ]
[ ]
Implement a list of values (LOV) to enable users to select a value from a list
[ ]
Add a calendar component to an input date field to make it easy for users to select
[ ]
[ ]
[ ]
Add icons and images to an application with ADF Faces output componentsE
[ ]
[ ]
Use ADF Data Visualization components to add charts, graphs, map etc to your JS
[ ]
[ ]
[ ]
[ ]
[ ]
Use breadcrumbs
[ ]
Create trains
[ ]
[ ]
Ensuring Reusability
[ ]
[ ]
Create a resource catalog to enable sharing of resources within and across teams a
[ ]
Create ADF libraries to share components within and across teams and application
[ ]
Create a task flow template for reuse across different bounded task flows
[ ]
Create a page template for reuse across the JSF pages in an application to enable
[ ]
[ ]
[ ]
Evaluate whether the data model contains opportunities to reduce the need for pass
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Describe the features of JDeveloper that support ADF Faces enhanced event hand
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Define the response to the browser's Back button (for an ADF task flow that was al
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Use Expression Language to extend the default security capabilities of the framew
Oracle ADF File Hierarchy Overview for the Fusion Web App
[ ]
Examine how Metadata files are used to specify paramters, methods, and return va
[ ]
adfm.xml: This file lists the DataBindings.cpx file that are available in
Note:
The web.xml file no longer contains a databinding.cpx entry. This entry is now
See Section A.4, "adfm.xml" for more information.
PageDef.xml: This is the page definition XML file. This file is created eac
For more information, see Section A.8, "pageNamePageDef.xml".
[ ]
Explore the ADF Faces and Web Configuration Files to know where task flows, pag
Figure A-2 illustrates the hierarchical relationship of the XML metadata files that you
1.
When the first request for an ADF databound web page occurs, the servlet
2.
3.
4.
The binding context creates the binding container by loading the file as re
5.
The adfm.xml file loads the DataBindings.cpx contents and finds the
6.
7.
8.
The binding container also creates the bindings defined in the section of t
9.
The web page references to ADF bindings through EL using the expressio
10.
The page pulls the available data from the bindings on the binding contain
[ ]
Extend the ADF Business Components (ADF BC) Framework to customize your ap
[ ]
Override the standard way data is committed to the database using a PL/SQL proc
[ ]
Use ADF Business Components for Validation, Calculations and List of Values
[ ]
[ ]
[ ]
[ ]
[ ]
[ ]
Expose ADF Business Components as SDO for use in a SOA Process (BPEL)
[ ]
Create Rich User Interfaces that access data from a composite application
[ ]
Create events for ADF Business Components to trigger Enterprise Service Bus
[ ]
[ ]
[ ]
Customize data-bound components within the page definition file to support applica
[ ]
[ ]
Determine how model components get transformed into Data Control Palette items
Examine data binding in the JavaServer Faces (JSF) Page life cycle
[ ]
Define listeners and custom controllers to augment the ADFm life cycle
[ ]
Develop two different style queries: Query by example and Query using Google sty
[ ]
Develop two different types of list of allowable values: Static lists and Dynamic lists
[ ]
[ ]
[ ]
In a JSF page, create and reference a Managed Bean to perform a custom method
[ ]
Set and use Managed Properties to store and retrieve user login information
[ ]
Use context object classes to access application messages, work with the Servlet A
[ ]
[ ]
Enhance a page by creating input and output items using ADF Components
[ ]
Use page, panel and splitter componentss to design and build a JSF page
[ ]
[ ]
Display numerical data using Data Visualization components and Active Data Serv
[ ]
Integrate ADF pages with Content Management systems to access file systems
[ ]
Add Web Center Services, like social networking and collaboration, to JSF/ADF pa
[ ]
Add reusable Portlets that provide dynamic view of data, into a JSF/ADF page
[ ]
[ ]
[ ]
You can also find ADF Interview info at oracle adf interview questions and answers - Part One.
Dig more/References:
Oracle JDeveloper 11g Handbook . This book by Duncan Mills really helps to answer many of
the above. If you are a newbie consider buying ( http://www.amazon.co.uk/Oracle-JDeveloper-11gHandbook-Development/dp/B001NLL53Q/ref=sr_1_4?ie=UTF8&s=digital-text&qid=1294509536&sr=84)
http://xmlandmore.blogspot.com
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?
page_id=41&p_org_id=1001&lang=US&p_exam_id=1Z0_554#3
ADF Taskflows(Controller)
Q : What is Oracle ADF?
A : Oracle ADF is an commercial java/j2ee framework, which is used to build
enterprise applications.
It is one of the most comprehensive and advanced framework in market for J2EE
Q : What are the advantages of using ADF?
A : Following are the advantages of using :
It supports Rapid Application Development.
Secure
SOA Enabled
Q : What is the return type of Service Methods?
A : Service Methods can return Scalar or Primitive Data types.
Q : Can Service Methods return type Void?
A : Yes, Service Methods can Return type Void
Q : Can Service Methods return Complex Data types?
A : No, service methods can return only primitive/scalar data types.
Q : Which component in ADF BC manages transaction ?
A : Application Module, manages transaction.
Q : Can an entity object be based on two Database Objects(tables/views) or two
Webservices ?
A : No entity objects will always have one to one relationship with a database object
or web service.
Q : Where is that we write business rules/validations in ADF and why?
A : We should be writing validations at Entity Object level, because they provide
highest degree of reuse.
Q : What is Managed Bean?
A : Managed bean is a java class, which is initialized by JSF framework. It is primarily
used to hold view and controller logic. It is also used to execute java code to be
executed on a user action like Button Click.
Q : What are Backing Bean?
A : Backing beans are those managed beans which have 1:1 mapping with a page.
They have getters and setters
for all the components in the related page.
Q : What is a Taskflow?
A : Taskflow is the controller of an ADF application, it provides us an declarative
approach to define the control flow. It is used to define the navigation between
pages and various taskflow activites.
Q : What are the different types/categories of Taskflows ?
A : Taskflows are of two categories : Bounded and UnBounded.
Bounded taskflows can accept parameter and return values but unbounded
taskflows dont support parameters
Application Scope
Session Scope
PageFlow Scope
Request Scope
BackingBean Scope.
Q: What is databindings.cpx file in ADF?
A:
In ADF web application as soon as you drop a databound component on your page a
DataBindigs.cpx file gets created. You may wonder what it contains? So, here it is:
The DataBindings.cpx keeps track of the individual page definitions files used within
the project, as well as the DataControls mapping to such things as ADF Business
Components Application Modules.
Till Jdeveloper 10.1.3 release there was no way to have multiple DataBindings.cpx
files which was very much desirable as the project the size grows and being worked
by multiple teams. Jdeveloper 11g added this capability to have multiple
DataBindings.cpx files.
There is a new file in 11g called adfm.xml which is used to keep track of all such
DataBindings.cpx files in the system. So, when breaking your DataBindings.cpx you
need to take care to create an entry in the adfm.xml. You also need to make sure to
have unique application id attribute value for each entry.
Q: How to Skip Validation?
A: At view layer Keep immediate=true
Q : Describe life cycle of a ADF Page?
A : ADF page is an extension of JSF and has following phases in its lifecycle
1.
Initialize Context: In this phase the adf page initializes the LifecycleContext
with information that will be used during the Lifecycle.
2.
Prepare Model: In this phase ui model is prepared and initialized. In this
phase page parameters are set and methods in the executable section of the page
definition of the ADF page are executed.
3.
Apply Input Values: This phase handles the request parameters. The values
from the HTML are sent to the server and applied to the page binding in page
definitions.
4.
Validate Input Values: This phase validates the values that were built in the
Apply input values phase
5.
Update Model: Validated values supplied from user are sent to ADF business
components data model
6.
Validate Model Updates: In this phase the business components will validate
user supplied values.
7.
Invoke Application: This phase will process the ui events stack built during
the life cycle of page and also fire navigational events
8.
Prepare Render: This is the final phase where HTML code is generated from
the view tree.
Q: What is Association and Viewlink ?
A: They define the join or the link among EOs and VOs.Association defines link
between EOs.They can be considered as PrimaryKey/ForeignKey relationship
between tables.
The Viewlink is for a VO.It defines the Join conditions.A viewlink can be based on an
association or based on attributes,Basing viewlinks on associations have the same
advantage of entity cache and few more which are unveiled later.
Here are a set of Interview Question and Answers/Tips for Oracle ADF :
Q : What is Oracle ADF?
A : Oracle ADF is an commercial java/j2ee framework, which is used to build enterprise
applications.
It is one of the most comprehensive and advanced framework in market for J2EE
Q : What are the advantages of using ADF?
A : Following are the advantages of using :
Application Scope
Session Scope
PageFlow Scope
Request Scope
BackingBean Scope.
Initialize Context: In this phase the adf page initializes the LifecycleContext
with information that will be used during the Lifecycle.
2.
Prepare Model: In this phase ui model is prepared and initialized. In this phase
page parameters are set and methods in the executable section of the page
definition of the ADF page are executed.
3.
4.
5.
6.
7.
8.
Apply Input Values: This phase handles the request parameters. The values
from the HTML are sent to the server and applied to the page binding in page
definitions.
Validate Input Values: This phase validates the values that were built in the
Apply input values phase
Update Model: Validated values supplied from user are sent to ADF business
components data model
Validate Model Updates: In this phase the business components will validate
user supplied values.
Invoke Application: This phase will process the ui events stack built during the
life cycle of page and also fire navigational events
Prepare Render: This is the final phase where HTML code is generated from
the view tree.
VIDEO lINKS:
http://myexpwithoracleadf.blogspot.in/2013/03/oracle-adf-useful-training-videoppt.html
http://jdeveloperandadf.blogspot.in/2011/02/oracle-adf-interview-questions-and.html
http://myexpwithoracleadf.blogspot.in/2013/04/oracle-adf-interview-questionand.html
http://myexpwithoracleadf.blogspot.in/2013/05/oracle-adf-useful-links-topicwise.html
http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_aeo.html
http://myexpwithoracleadf.blogspot.in/2013/03/oracle-adf-useful-trainingvideo-ppt.html
http://amit-adf-work.blogspot.in/2013/01/oracle-adf-interview-question-part1.html
http://adfnote.blogspot.in/2013/02/oracle-adf-interview-questions-and_10.html
http://nitesh-java.blogspot.in/2012/09/oracle-adf-11g-interview-questions.html
http://smconsultants.in/2013/03/interview-questions-and-answer-webcenter-andadf.html
http://jdeveloperandadf.blogspot.in/2011/02/oracle-adf-interview-questionsand.html
http://spotlearning.wordpress.com/2011/07/15/adf-11g-interview-questions/
http://www.techartifact.com/blogs/2011/08/oracle-adf-interview-question-part2.html
http://oracleadfinterviewquestions.blogspot.in/2013/03/basic-oracle-adfinterview-question-and.html
http://www.johnbrunswick.com/2011/05/25-great-oracle-adf-resources/
http://www.youtube.com/watch?v=OMGvk2tsJgI
http://jwebcenter.blogspot.in/2011/06/step-by-step-learning-of-oracle-adf11g.html
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/layouts/layouts.
html
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/Forms_Redevelopm
ent_ADF/Forms_Redevelopment_ADF.html
http://www.slideshare.net/rbg14952/oracle-adf11g-tutorial
http://www.youtube.com/watch?v=cH7Ol9_oHfM
http://www.oracle.com/technetwork/developer-tools/adf/overview/adfessentials1719844.html
http://www.slideshare.net/rbg14952/oracle-adf11g-tutorial
http://docs.oracle.com/cd/E16162_01/web.1112/e16182/toc.htm
https://blogs.oracle.com/prajkumar/entry/adf_developer_guide
http://www.veriton.co.uk/download/Practical_ADF_Application_Deployment.pdf
http://www.youtube.com/watch?v=OMGvk2tsJgI
http://www.slideshare.net/Tektrainings/best-oracle-adf-online-training-realtime-expert
http://www.punetrainings.com/best-oracle-adf-corporate-training-real-timescenarios-online-fastrack-classrooms-by-9-years-industry-expert-and-6-yearsonsite-experience-www-kyathitechnologies-com-tc67289.html
http://stackoverflow.com/questions/6178164/can-anyone-suggest-a-greattutorial-for-adf-with-jdeveloper-please
http://people.cis.ksu.edu/~hankley/d764/tut07/Surapaneni_ADF_MasterDetail.pdf