tags:

views:

30

answers:

0

Hi all

I have some questions regarding GWT (2.1) with MVP and events.

Got DockLayoutPanel with some components in it. A Tree component to the west and a SimplePanel in center. Each component has a presenter and a view. The problem is that I want to handle the components events in their presenter class, but now they are only catchable in the container which is the DockLayoutPanelPresenter . I want to handle the tree's event s in the TreePresenter. I think that the TreePresenter should handle its 'SelectedItem' events and the it can put it on the eventbus so that my other components can react to it.

Has anyone else faced this? Posted on GWT groups list, but got no reply. I think this is an imporant topic for decoupling components.