2 Replies Latest reply on Jul 19, 2009 8:38 PM by yancaoshi

    Why do I have to remove event listener?

    yancaoshi Level 1

      Hi all,


      In my customer component, I will call server-side method with RemoteObject. Of course, I added event listener to process result. It works when I pops up the customer component for the first time. If I pops this component again, it seems result returned also from server. However, all result disappears once it exits from event listener method.


      It took me a lot of time to find out where the problem is. If I remove event listener before closing this component, it works for the next time.


      Is there any explanation for this issue? When must I remove event listener?



      Best regards and wishes