nerdexam
Oracle

1Z0-419 · Question #31

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…

The correct answer is C. C.to="#{pageFlowScope.emp.lastName). See the full explanation below for the reasoning.

Question

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.)

Options

  • Ato="#{lastName}"
  • BB.to="#{LastNamer
  • CC.to="#{pageFlowScope.emp.lastName):
  • Dto^frfpageFlowScopeEmplastName}"
  • Eto="#{emp.lastName}e
  • Fto="#{pageFlowScope emp LastName}"

How the community answered

(35 responses)
  • C
    83% (29)
  • D
    3% (1)
  • E
    6% (2)
  • F
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-419 Practice