Action VS ActionListener


Action VS ActionListener

step:1

I have create one Application name as Action_ActionListener.


In that I have create one task flow with  two jsff.pages

Action.jsff





actionListenerPage.jsff

I need to give Control flow Case action to action Listener Page

Control flow Case  --  gotoListener

                                                    

ControlflowCase  --  gotoAction

                                            


now I am drag and drop Panel header in component pallet in action.Page



I have drag and dropped one button in panel Header 


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




    

                                                                                                                                                                   Uma Devarakonda





















































 

















Comments

Popular posts from this blog

Programmatically invoke a Popup to create a new row.

POJO(Plain Old Java Object) - Editable Data - DataControl.dcx

Dynamic Tabs in ADF