In my experience, the fewer components you have for a single view, the
easier it becomes to maintain code.  With that being said, there are some
cases where it makes more sense to combine a large number of UI components
into a single view, but you certainly can have many views and many
presenters on screen at one time.

The way that I allow this is to have a MainPresenter and MainView.  The main
view has several components that remain bound (exist in visible form within
the UI) regardless of the state of the application, and the MainPresenter
initializes all other presenters in my application. It determines what view
is shown with a number onEvent methods.

Daniel S

On Sun, Jan 3, 2010 at 8:20 AM, Yaakov Chaikin <[email protected]>wrote:

> Chris, or anyone else with experience on MVP in GWT...
>
> Practically, do you always have 1 view as the user sees it, i.e., the
> whole GUI, or if your GUI has many components (as most GUIs do), do
> you have multiple views, and most importantly, multiple presenters,
> presenting 1 coherent view to the user? In your example, this would be
> similar to splitting the GUI into a view that has the buttons and the
> GUI that has the list.
>
> How would that be handled in MVP?
>
> Thanks,
> Yaakov.
>
> On Wed, Dec 30, 2009 at 2:43 PM, Chris Ramsdale <[email protected]>
> wrote:
> > While I see that someone has already found it, I just wanted to let
> everyone
> > know that it's officially there.
> >
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
> >
> > We're looking to put together parts 2 and 3 shortly. So far I have UI
> Binder
> > and Code Splitting integration as topics of interest. Let us know what
> else
> > would be of help.
> > - Chris
> >
> > On Tue, Dec 29, 2009 at 1:00 PM, jpnet <[email protected]> wrote:
> >>
> >> I really like this article:
> >>
> >>
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
> >>
> >> However, it's almost useless without the entire source package. Are
> >> there any plans to post the source code?
> >>
> >> Thanks,
> >>
> >> JP
> >>
> >> --
> >>
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to
> [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected]<google-web-toolkit%[email protected]>
> .
> >> For more options, visit this group at
> >> http://groups.google.com/group/google-web-toolkit?hl=en.
> >>
> >>
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to [email protected]
> .
> > To unsubscribe from this group, send email to
> > [email protected]<google-web-toolkit%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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


Reply via email to