Oracle ADF Interview Questions and Answers
Oracle ADF Interview Questions and Answers
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.
Application Scope
Session Scope
PageFlow Scope
Request Scope
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.
6.
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.
Managed Beans
A backing bean is any bean A managed bean is a backing bean that has been registered with JSF
that is referenced by a
(in faces-config.xml) and it automatically created (and optionally
form.
Q: How to declare the page navigation (navigation rules) in faces-config.xml file in ADF
10g?
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
Ans: <af:table rows=#{bindings.LoggedInUserServiceRequests.rangeSize}/>
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 Web
services ?
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 ideally be writing validations at Entity Object level, because they provide highest
degree of reuse.
Q: What are the JSF life-cycle phases?
Ans: The six phases of the JSF application lifecycle are as follows (note the event processing at
each phase):
1. Restore view
2. Apply request values; process events
3. Process validations; process events
4. Update model values; process events
5. Invoke application; process events
6. Render response
Q. Explain briefly the life-cycle phases of JSF?
1. Restore View : A request comes through the FacesServlet controller. The controller examines
the request and extracts the view ID, which is determined by the name of the JSP page.
2. Apply request values: The purpose of the apply request values phase is for each component
to retrieve its current state. The components must first be retrieved or created from the
FacesContext object, followed by their values.
3. Process validations: In this phase, each component will have its values validated against the
applications validation rules.
4. Update model values: In this phase JSF updates the actual values of the server-side model ,by
updating the properties of your backing beans.
5. Invoke application: In this phase the JSF controller invokes the application to handle Form
submissions.
6. Render response: In this phase JSF displays the view with all of its components in their
current state.
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
process Scope EL scope provided b ADF Faces, as it makes it 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.
Example 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.
It have two attributes:
From the source of the value; can be an EL expression or a constant value
To the target for the value; must be an EL expression
1<af:setActionListener from="#{row.salary}"
2to="#{processScope.salary1}"/>
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.
Oracle ADF 11g interview questions
Q: What are various components in ADF?
A: Oracle ADF has following components
ADF Taskflows(Controller)
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.
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.
Application Scope
Session Scope
PageFlow Scope
Request Scope