Menu

#1 Is YIControllerComponent missing a removeViewListeners

open
nobody
None
5
2008-09-02
2008-09-02
No

I've taken over an applet application, that talks to a JEE-Server.

Right now I'm experiencing a problem whereby after a response from the server and recreating a view the old view is still there and at least on component gets a focusLostEvent. This is then updating the model as it still holds a reference to the controller.
This update is not wanted and actually screws up my whole data.

After looking into it for a long time I'm wondering why there is a addViewListener on YIControllerComponent but not corresponding removeViewListeners.

As far as I can see there is no way of getting rid of the listeners that addViewListener registers with every component - except casting everything to a JComponent and removing all Listeners by hand.

Am I missing something here??

Thanks
Lars

Discussion


Log in to post a comment.