What EL expression would you write in the af:setPropertyListener “to” property to write the value to the lastName string of the Employee class?

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}”

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.