Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use UiHandler in a MVP pattern

Accoring to the MVP pattern the view should contain all the UI components. Then i read about the new UiHandler introduced in the GWT 2.0. The UiHandler can be used only in the view.

Should we use UiHandler in the mvp pattern, if so where should we use it.

NOTE: i am a GWT n00b.

like image 875
Anantha Kumaran Avatar asked Mar 03 '10 04:03

Anantha Kumaran


1 Answers

Using gwt-presenter, I can perfectly merge UiBinder with MVP. EventHandlers are perfectly dividable in those that handle view events (entering a textbox clicks a submit button) and those that have their place in the presenters (handle service responses etc.)

like image 178
Jeroen Avatar answered Sep 29 '22 14:09

Jeroen