1 Reply Latest reply on Jul 11, 2010 7:11 PM by Malena Mesarina

    ViewStack addEventListener not working

    Malena Mesarina

      Hi,

       

      My code adds a hanler via an eventListener to a ViewStack component at Initialization, but when I run my application and change the view, the handler never gets triggered.

       

      Code :

      myViewStack.addEventListener(IndexChangedEvent.CHILD_INDEX_CHANGE, ViewHandler);

       

      However if I add the Handler inside the <ViewStack> tag it works.

       

      Any idea about what the problem could be?

       

      thanks

       

      -Malena