Re: Extending the 'Contact: MVP' example

2010-05-27 Thread Josh
I to would like to use MVP but find that i'm unable to present more than one view on the screen at a time. I would like to have 3-5 panels loading widgets based on selections in other panels. I attempted to create a presenter/view (just to test) that had both contact edit and contact list. The issu

Re: Extending the 'Contact: MVP' example

2010-04-13 Thread Sean C.
The problem is that only one presenter can be active at a given time. If a presenter is controlling the left, right and center column, even handing the center column container to another presenter will not result in the original presenter giving up control or you get the effect of one view being dr

Re: Extending the 'Contact: MVP' example

2010-04-12 Thread Brian Reilly
I think you should be able to do this pretty easily by putting something that implements HasWidgets (such as SimplePanel, FlowPanel, etc.) in your center column. You can then pass that container into your presenter as the place where its content should live. That should leave the other things that

Re: Extending the 'Contact: MVP' example

2010-04-10 Thread Sean C.
Having a similar problem with creating Composite Views backed by their respective Presenters. The bug in DockPanelLayoutPanel for Java 5 does not help and I don't have the option to switch to Java 6 but that is a separate discussion: http://code.google.com/p/google-web-toolkit/issues/detail?id=425

Re: Extending the 'Contact: MVP' example

2010-03-18 Thread Fabio Kaminski
As far as i understand you have "windows" that contain widgets... like: MainWidgetContainer (which owns) LoginWidget, HeaderWidget and so on.. LogoutWidgetContainer (owns) LogoutWidget, ComeBackSoonMessageWidget, etc.. if is that the case, you would only call the go() which means "RootPanel.get()

Re: Extending the 'Contact: MVP' example

2010-03-18 Thread Brian Reilly
It seems to me like you need a supervising presenter to coordinate interactions among each of the panes of the application, in a DockPanel as you suggest. The AppController would then bootstrap this instead of managing what is shown in the root panel. Finally, the logic that is in the AppController

Re: Extending the 'Contact: MVP' example

2010-02-27 Thread Andrew
The idea is to have multiple presenters throwing views up into their own little piece of real estate on the screen, then depending on different events, swap out presenters. For instance I want user information in one little box on the screen, and a header across the top. I want the user information

Re: Extending the 'Contact: MVP' example

2010-02-26 Thread Jim
modify Presenter.go(HasWidget container) to Presenter.go(HasWidget... containers). On Feb 26, 5:18 pm, Andrew wrote: > Hey all. I've got a question about the GWT and more specifically the > mvp architecture tutorial > > http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur... > >

Extending the 'Contact: MVP' example

2010-02-26 Thread Andrew
Hey all. I've got a question about the GWT and more specifically the mvp architecture tutorial http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html I've been messing around with this, and extending it for my own project, but i've run into a little problem. if (token != nul