Do you always have an enormous front-prensenter?

2010-03-16 Thread zggame
Hi, I am new to gwt as well as mvp.  We are building a site with gwt-
front talking with a legacy server via simple json.  I looked through
the gwt-mvp sample with gwt-presenter.  It seems its mainPresenter
acts like a front-controller (dispatch-servlet in Spring mvc)?  We are
trying to layout the page with a header (menu), a footer (staus bar)
and center.  The center changes and we have about 15-25 different
types for center content (may growing into ~100 later).  My
understanding is that each of these corresponds to a presenter, which
might be called by MainPresenter.  Then do you need to inject all of
them into the MainPresenter? That seems a really large MainPresenter
to build, with a huge constructor to inject.  Am I thinking in the
right line?  Is there any other way to break it down?   Thank you very
much.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Do you always have an enormous front-prensenter?

2010-03-16 Thread Trevis

Hm,  when you say inject do you mean via Gin dependancy injection
framework?
Or are you talking about passing all of those child presenters in as
constructor args?  I'd highly recomend Gin for this task.  It's pretty
easy to learn and makes your code nice and tidy.


On Mar 15, 2:54 pm, zggame zgg...@gmail.com wrote:
 Hi, I am new to gwt as well as mvp.  We are building a site with gwt-
 front talking with a legacy server via simple json.  I looked through
 the gwt-mvp sample with gwt-presenter.  It seems its mainPresenter
 acts like a front-controller (dispatch-servlet in Spring mvc)?  We are
 trying to layout the page with a header (menu), a footer (staus bar)
 and center.  The center changes and we have about 15-25 different
 types for center content (may growing into ~100 later).  My
 understanding is that each of these corresponds to a presenter, which
 might be called by MainPresenter.  Then do you need to inject all of
 them into the MainPresenter? That seems a really large MainPresenter
 to build, with a huge constructor to inject.  Am I thinking in the
 right line?  Is there any other way to break it down?   Thank you very
 much.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Do you always have an enormous front-prensenter?

2010-03-16 Thread zggame
Yeah, I am using Gin. But it is still pretty ugly for a constrctor
with say 30 pretty long parameters.  Is there any other way to get
around this? Thanks.

On Mar 16, 12:42 pm, Trevis trevistho...@gmail.com wrote:
 Hm,  when you say inject do you mean via Gin dependancy injection
 framework?
 Or are you talking about passing all of those child presenters in as
 constructor args?  I'd highly recomend Gin for this task.  It's pretty
 easy to learn and makes your code nice and tidy.

 On Mar 15, 2:54 pm, zggame zgg...@gmail.com wrote:

  Hi, I am new to gwt as well as mvp.  We are building a site with gwt-
  front talking with a legacy server via simple json.  I looked through
  the gwt-mvp sample with gwt-presenter.  It seems its mainPresenter
  acts like a front-controller (dispatch-servlet in Spring mvc)?  We are
  trying to layout the page with a header (menu), a footer (staus bar)
  and center.  The center changes and we have about 15-25 different
  types for center content (may growing into ~100 later).  My
  understanding is that each of these corresponds to a presenter, which
  might be called by MainPresenter.  Then do you need to inject all of
  them into the MainPresenter? That seems a really large MainPresenter
  to build, with a huge constructor to inject.  Am I thinking in the
  right line?  Is there any other way to break it down?   Thank you very
  much.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.