Action VS ActionListener
Action VS ActionListener
step:1
I have create one Application name as Action_ActionListener.
Action.jsff
actionListenerPage.jsff
I need to give Control flow Case action to action Listener Page
Control flow Case
-- gotoListener
ControlflowCase
-- gotoAction
Here I have to give action in property Inspector
actionListenerPage.jsff
I have drag and drop Panel Header in
actionListenerPage.jsff.
I have drag and drop one button in Panel Header.
I have to give action in property Inspector
Created one main.jspx for drag and drop task flow
Out
When click Next button (page one)
It will move Page Two
I am trying to create bean side action and actionListener
I need to create one Java class (actionActionListenerBean)
Action method in Next Button
public String nextButtonAC() {
// Add event code
here...
System.out.println("nextButtonAC");
return "gototwo"
;
}
I need to create actionListener
to NextButton
public void nextButtonACL(ActionEvent actionEvent)
{
// Add event code
here...
System.out.println("ActionListener--nextButtonACL");
}
Action method in BacktoOnePage
Button
public String backButtonAC()
{
// Add event code
here...
System.out.println("backButtonAC");
return "gotoone";
}
I need to create actionListener
to BacktoOnePage
public void backButonACL (ActionEvent
actionEvent)
{
// Add event code
here...
System.out.println("ActionListener--backButonACL");
}
Final Out put
First actionListener will excute but not move to another
page
And
Action will move page Two
Comments
Post a Comment