What EL expression would you write in the af:setPropert…

Your page contains the following code that is invoked on an action by the current user:
<af:setPropertyListener from=”#{applicant:surname}” to=”#(…)” type=”action”/>
To receive the value from the to property of the af:setPropertyListener, you create a managed bean as
follows:
package view;
public class Employee {
String lastName;
public void setLastName(String lastName) { this.lastName = lastName; }
public String getLastName() { return lastName;
}
In the adfc-сonfig.xml file, the managed bean is configured as:>
<managed-bean>
<managed-bean-name>emp</managed-bean-name>
<managed-bean-class>view. Employee</managed-bean-class>
<managed bean-scope>pageFlowScope</managed-bean-scope>
</managed-bean>
What EL expression would you write in the af:setPropertyListener “to” property to write the value to
the lastName string of the Employee class? (Choose the best answer.)

Your page contains the following code that is invoked on an action by the current user:
<af:setPropertyListener from=”#{applicant:surname}” to=”#(…)” type=”action”/>
To receive the value from the to property of the af:setPropertyListener, you create a managed bean as
follows:
package view;
public class Employee {
String lastName;
public void setLastName(String lastName) { this.lastName = lastName; }
public String getLastName() { return lastName;
}
In the adfc-сonfig.xml file, the managed bean is configured as:>
<managed-bean>
<managed-bean-name>emp</managed-bean-name>
<managed-bean-class>view. Employee</managed-bean-class>
<managed bean-scope>pageFlowScope</managed-bean-scope>
</managed-bean>
What EL expression would you write in the af:setPropertyListener “to” property to write the value to
the lastName string of the Employee class? (Choose the best answer.)

A.
to=”#{lastName}”

B.
to=”#{LastName}”

C.
to=”#{pageFlowScope.emp.lastName)”

D.
to=”#{pageFlowScope.Emp.lastName}”

E.
to=”#{emp.lastName}”

F.
to=”#{pageFlowScope.emp.LastName}”

Explanation:
For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow
might specify #{pageFlowScope.employeeID} as the value of an input parameter definition.
The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the tovalue would be #{pageFlowScope.empno}. This enables reuse of both the page definition and bounded task
flow because you don’t have to redefine parameters for every context in which each is used.
https://docs.oracle.com/cd/E23943_01/web.1111/b31974/
taskflows_parameters.htm#ADFFD19858



Leave a Reply 0

Your email address will not be published. Required fields are marked *