Вы находитесь на странице: 1из 15

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.

It is based on MVC architecture

Declarative Approach (XML Driven)

Secure

Reduces maintenance cost and time

SOA Enabled
Q : What are various components in ADF?
A : Oracle ADF has following components

ADF Business Components(Model)

ADF Faces (View)

ADF Taskflows(Controller)
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 difference between managed and backing beans?


A : Backing bean has 1:1 relation with page whereas managed beans can be
used in multiple pages.
Backing beans scope is limited to the page whereas managed beans can
have other scopes too.
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.
Q : What is the difference between Bounded and UnBounded taskflows?
A : Differences between Bounded and UnBounded taskflows :

Bounded taskflows can be secured but Unbounded cant.

Bounded taskflows can accept parameter and return values


but unbounded taskflows dont support parameters

Bounded taskflows has a single entry point or a default


activity but unbounded taskflows have multiple entry points.

Bounded taskflows can be called from other


bounded/unbounded taskflows but unbounded cannot be called or
reused.

Bounded taskflows support transactions unbounded dont

Q : What are the various access scopes supported by ADF?


A : ADF Faces supports the following scopes

Application Scope

Session Scope

PageFlow Scope

Request Scope

BackingBean Scope.
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 PPR and how do you enable Partial Page Rendering(PPR)?
A : PPR is a feature supported by ADF Faces, using which we can render a
small portion of a HTML Page, without refreshing the complete page.
It is enabled by.

Setting AutoSubmit property to true on the triggering


element.

Setting the PartialTriggers property of target component to


refer to component id of the triggering element.

Q1. What is Oracle ADF?


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, metadatadriven 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.

Q9 Why we used applicationmodule in ADF framework?


Ans:Applicationmodule is the component of ADF BC which hold the references of
ViewObject and instantiate them while running the application. ViewObejct reference
define in Application Module can be used to define the jsff/jspz page. If you want to
use any ViewObject on you page you must have to provide the reference in
Application Module.
Application module also provide the transaction management with commit and
rollback operation

Q10 What is the controller in ADF in respect of MVC architecture?


Ans:Controllers in ADF framework are TaskFlows, Faces-config.xml, adfc-config.xml.
In all there file you can define navigation between the pages.
Declare the manage-bean in different scope.

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.

Q15 What is taskflow ? how many type of taskflow adf support?


Ans: Taskflow is the Component of Oracle ADF which is used to define simple task.
After successfully defining task-flow can consume any number of time.
ADF support two kind of taskflow:
Bounded TaskFlow : Bonded taskflow require the page on which they will
consume.
UnBounded TaskFlow : Unbounded taskflows can directly run on browser
Q16 How to develop reusable taskflow in ADF?
Ans: Please fins the step below
Define taskflow
Define deployment profile as ADF Library jar
Deploy adf jar file
Open new project where you want to consume the task flow.
Add newly created jar of taskflow project
go to component palate You will fine you jar name select it.
It will show list of taskflow you developed
Drag drop your taskflow as region on jsff/jspx page and run ur application

Q17 Can bounded taskflow run on browser?


Ans: NO
Q18 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.
Q19 How can you force ADF taskflow to use new transaction everytime
taskflow is called?
Ans: Go taskflow overview and you will file below item
Select always begin new transaction fron dropdown
Q20 How to use same transaction in ADF taskflow?
Ans
Q 21 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 takflow while loading it.
Q22 Explain the purpose of using Controls flow in adf?
Ans: Controls flow defined in taskflow can be called anytime from any page of that
taskflow.
if you have same flow for multiple pages just define the control flow once in taskflow.
You can invoke it anytime from any action event.
Q23 What is the behavior of router in ADF taskflow?
Ans : Based on some condition router can decide which route need to be follow. If
none of condition match in that case router will follow default route defined by used.
Q24 How can navigation define in taskflow?
Ans : Navigation can be defined in taskflow using control flows and invoked by
jsff/jspx page using action event like button link etc.
Q25 Can ADF task flow hold more than 1 view activity?
Ans: Yes. ADF taskflow can have multiple view activity but 1 activity has to be
defined as default activity.
Q26 What is the Parent Action in ADF Taskflow?
Ans:Parent action is activity using that you can invoke the Control flow define in
parent taskflow from child taskflow. More details about how to develop it can be
found on Parent Activity
Q27 What is method activity in Adf Taskflow?
Ans: Using this activity you can invoke and method defined in manage-bean.

Q28 How to initialize ADF Taskflow?


Ans: Open the taskflow in Overview Mode select general like there is initiallizer
property.
you can provide the any method reference which will get invoked whenever taskflow
instance created.

Q29 What is the different between Action and ActionListener?


Ans : ActionListener: ActionListener is the method which got invoked when user click on
the component like button, commandlink etc.
Action: Action is the outcome of where you want to move once actionlistener is completed.
This can be define in the taskflow as activity. So when listener completed application is
redirected to define activity.

Q30 How many kind of VO supported by Oracle ADF?


Ans : ADF support 4 type of view Object
ViewObject Based on EntityObject
ViewObject Based on sql query
ViewObject based on static data
Programatic View Obejct.
Q31 how to develop Master-details view in adf?
Ans: For Developing the Master-details view in ADF. You have to created the relationship
between 2 viewobject. That relationship can be created using the viewlink or association
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.

Q35 How can you manage transaction in ADF?


Ans: In ADF transaction can we manage at ApplicationModule as well as taskflow level.
Task flow support different mode of transaction like:
Start new transaction always
Use Existing Transaction
Q36 What is the model in ADF MVC?
Ans : Model in ADF application is the bindings context and bindings container. Very
confusing thing here is about model and model project. Model project is the Business
Services which usually have ViewObject, EntityObject, ApplicationModule, View Link,
Association.
Q37 How can you define custom component?
Ans: There is multiple way of creating the custom component
1.
Declarative :Using this way you can create jspx page with adf components and
provide property and methods which you want to expose to client.
2.
Extending Component: You can extends you existing component to define custom
component.
Q38 Can you use view object inside custom component defination?
Ans: Use of datamodel inside the Declarative components is not allowed by adf. But there is
work around for that you can pass you iterator to Declarative component. You have to write
the logic to get data from iterator and display on component same logic you can use to
retrieve data from component and set that to iterator.
Q39 What are the different trigger type for af:popup?
Event Type

Component
Family

Description

action

Command

Fires when user triggers the command component.


Owning component's server-side action listeners will be
ignored
since the event will be canceled.

contextInfo

ContextInfo

Fires when user clicks the icon in a contextInfo

dialog

Dialog

Fires when user clicks dialog OK/Cancel buttons

disclosure

ShowDetail

Fires when disclosure state is toggled

inlineFrameLoad InlineFrame

Queued when the internal iframe fires its load event

load

Document

Fires when the document finishes loading

fetch

Popup

Content fetch event fired before opening if


the content delivery of the popup is lazy or lazyUncached.
This is the first of two events required for content delivery.

contentLoaded

Popup

Partial content delivery has been delivered to the browser.


This event notifies the popup component that it can be shown.
Second content delivery event.

popupOpening

Popup

Fired prior to opening a popup

popupOpened

Popup

Fired after popup is opened

popupClosed

Popup

Fired after popup is closed

query

Query

Fired when a query action happens(when user clicks the search


icon in
quickQuery or the search button in the query component)

rowDisclosure

Tree, TreeTable

Fired row disclosure state is toggled

selection

Table, Tree,
TreeTable

Fires when selection state changes

sort

Table

Fires when user sorts data

valueChange

Input, Select\*

Fires when the value of an input control is changed

Q40 How to define multiple ActionListener for single ADF component?


Q41 How to enable security to ADF Application?
Ans : 1. Go to the menu Application -> Secure -> Cofigure ADF Security and go through the
wizard of creating login pages.
2. Go to the menu Application -> Secure -> Application Roles and create an application role
for this application.
3. Create a test user and assign an applicaiton role to it.
4. Grant all required application resources to this role.
Q42 Which file holds the details of users and groups in adf?
Q43 How to create Jdeveloper compatible libraries?
Q44 How to connect standalone weblogic instance from jdeveloper?
Q45 How to deploy application to standalone weblogic instance from jdeveloper?
Q46 What are the MDS(MetaData Services)?
Q47 What is user customization?
Q48 What is seed customization?
Q49 What are different kind of MDS you configured?
Q50 Which file hold details of configured MDS?
Q51 What are the steps to configure MDS?

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.

It is based on MVC architecture

Declarative Approach (XML Driven)

Secure

Reduces maintenance cost and time

SOA Enabled
Q : What are various components in ADF?
A : Oracle ADF has following components

ADF Business Components(Model)

ADF Faces (View)

ADF Taskflows(Controller)
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 difference between managed and backing beans?
A : Backing bean has 1:1 relation with page whereas managed beans can be used in
multiple pages.

Backing beans scope is limited to the page whereas managed beans can have other
scopes too.
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.
Q : What is the difference between Bounded and UnBounded taskflows?
A : Differences between Bounded and UnBounded taskflows :

Bounded taskflows can be secured but Unbounded cant.

Bounded taskflows can accept parameter and return values but unbounded
taskflows dont support parameters

Bounded taskflows has a single entry point or a default activity but


unbounded taskflows have multiple entry points.

Bounded taskflows can be called from other bounded/unbounded taskflows


but unbounded cannot be called or reused.

Bounded taskflows support transactions unbounded dont


Q : What are the various access scopes supported by ADF?
A : ADF Faces supports the following scopes

Application Scope

Session Scope

PageFlow Scope

Request Scope

BackingBean Scope.
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 PPR and how do you enable Partial Page Rendering(PPR)?
A : PPR is a feature supported by ADF Faces, using which we can render a small
portion of a HTML Page, without refreshing the complete page.
It is enabled by.

Setting AutoSubmit property to true on the triggering element.

Setting the PartialTriggers property of target component to refer to


component id of the triggering element.

Вам также может понравиться