who should be responsible for using RequestFactory for server
is it the responsibility of Activity or the Presenters ?
Two main areas of concern:
1- getting the data into the widgets:
how can this design be improved ?
Server (RequestFactory) ---> Activity ---> WidgetPresenter --->
here, RequestFactory hands in data to Activity, which then gives it to
which subsequently hands it to the widget.
2- getting the data from the widgets to the server
widget ---> WidgetPresenter ---> Activity ---> Server(RequestFactory)
I am very concerned about the coupling between Presenter and Activity.
can Presenter directly use the RequestFactory to get the data,
or Activity does this and hands in the result to the Presenter ?
what about Presenter to Activity communication ?
who sends the data back to the server ? Presenter sends it directly,
or first sends it to the corresponding Activity which then sends it to
or does the Presenter do it directly ? or Presenter communicates with
Activity, through the Event Bus ?
the idea behind using a Presenter is this:
an Activity, is a display region which is related to a place.
Activity has a View, which defines the layout for this display region.
this View has a number of Slots, that are going to be filled with
To be in line with MVP, I also apply MVP to widgets, so a Widget has
and a Presenter which responds to Widgets events.
this Presenter therefore is called WidgetPresenter (a Presenter
associated with a particular widget).
therefore an Activity has a View, a number of Widgets that are going
to be used in that View,
these Widgets have associated Presenters.
the Widget and associated WidgetPresenter may be re-used in other
display regions (activities).
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.