16. What is Managed Bean?
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.
17. What are Backing Beans?
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.
18. What is difference between managed and backing beans?
Backing bean has 1:1 relation with page where as managed beans can be used in multiple
pages.
Backing beans scope is limited to the page whereas managed beans can have other scopes too.
19. Where is that we write business rules/validations in ADF and why?
We should be writing validations at Entity Object level, because they provide highest degree of
reuse.
20. What is PPR and how do you enable Partial Page Rendering(PPR)?
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.
1. Setting Auto Submit property to true on thetriggering element.
2. Setting the Partial Triggers property of target component to refer to component id of the
triggering element.
21. What is setActionListener?
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 b ADF Faces, as itmakes it possible to pass details from one
page to another without writing any Java code. Thistag 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.
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
This setActionListener will pick value of salary ofthat 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.
1 <af:setActionListener from="#{row.salary}"
2 to="#{processScope.salary1}"/>
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.
17. What are Backing Beans?
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.
18. What is difference between managed and backing beans?
Backing bean has 1:1 relation with page where as managed beans can be used in multiple
pages.
Backing beans scope is limited to the page whereas managed beans can have other scopes too.
19. Where is that we write business rules/validations in ADF and why?
We should be writing validations at Entity Object level, because they provide highest degree of
reuse.
20. What is PPR and how do you enable Partial Page Rendering(PPR)?
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.
1. Setting Auto Submit property to true on thetriggering element.
2. Setting the Partial Triggers property of target component to refer to component id of the
triggering element.
21. What is setActionListener?
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 b ADF Faces, as itmakes it possible to pass details from one
page to another without writing any Java code. Thistag 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.
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
This setActionListener will pick value of salary ofthat 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.
1 <af:setActionListener from="#{row.salary}"
2 to="#{processScope.salary1}"/>
No comments:
Post a Comment