In a JSF view, the user completes a form and clicks a Submit button. The Submit button should
call the commit operation on the application module, as well as the loginsert method defined in the
-ationModuleimpl .Java. Finally, the Submit button should navigate to the rowinserted navigation
case in the task flow. How would this functionality be accomplished?
A.
Bind the button’s Action property to a backing bean that contains accessors for the button. In
the getter for the button, return “rowinserted”
B.
Bind the button’s Action property to a managed bean that calls the Commit operation and
loginsert methods, and create a managed property with a value set to “rowinserted”
C.
Bind the button’s Action Listener property to # {bindings. Comnit. execute}, define a session-scoped managed bean that calls the loginsert method, and modify the loginsert method to return a
String value of “rowinsertec
D.
Bind the button’s Action property to # {bindings. loginsert. execute} and define a session-scoped managed bean that calls the Commit operation and returns “rowinserted”
E.
Bind the button’s Action property to a managed bean that calls the Commit operation and
loginsert methods via OperationBinding, and return “rowinserted”
F.
Bind the button’s Action Listener property to # {bindings. Commit. execute} && # {bindings,
loginsert. execute) and set the Action property to “rowInserted # {bindings.Commit.execute}
Explanation:
E
getter button not return String
Answer is E
Sure!
None of the options are correct here.
Option F would be correct if F was
F.Bind the button’s Action Listener property to # {bindings. Commit. execute} && # {bindings,
loginsert. execute) and set the Action property to “rowInserted”
because ActionListener will completes before Action methods.. so commit & logininsert has to perform before that and then it will navigate to next page/method call by returning “rowInserted”
Seems to be “E”.
It should be as per my knowledge but All dumps are saying A..i am really confuse on this.
Regards,
Ananda
It should be E as per my knowledge but All dumps are saying A..i am really confuse on this.
Regards,
Ananda