The driver is auto generated by the GWT compiler and therefore should
belong in the view. Any code that call GWT.create should really belong
in the view or your presenter will have to use the slow GWTTestCase.
--
You received this message because you are subscribed to the Google Groups
Google
I am a novice in GWT and MVP. I have question about Editors.
Where should SimpleBeanEditorDriver located? in Presenter layer or in
View layer?
From one point of view SimpleBeanEditorDriver know about model,
therefore it should be in Presenter(not in view).
From another point of view
The real kicker is you probably need to do a GWT.create on the driver, so
from that standpoint it makes the most sense to put it into the view
otherwise your presenter is doomed to GWTTestCase rather than to extending
TestCase.
--
You received this message because you are subscribed to the
As Jeff said, I would put it in the view. You might want to look at
the following Issue in how to structure your View interface to access
your editor driver in the presenter.
John