In the example Contacts.zip there are two views - ContactsView and
EditContactView. They are attached to root panel. And there is a
switching between them.
I'd like to have two views - one static HeaderView and one dynamic -
either ContactsView or EditContactView.
Currently I solved this by doing the following in the method
onModuleLoad() of an entry point class Contacts:
ContactsServiceAsync rpcService =
GWT.create(ContactsService.class);
HandlerManager eventBus = new HandlerManager(null);
AppController appViewer = new AppController(rpcService, eventBus);
VerticalPanel vp = new VerticalPanel();
RootPanel.get().add(vp);
vp.add(new Hyperlink("Some link", "some-token"));
VerticalPanel innerVP = new VerticalPanel();
vp.add(innerVP);
// appViewer.go(RootPanel.get());
appViewer.go(innerVP);
But this is not good, because according to MVP as I understood all the
binding to real widgets should be done in package "x.view".
Could you please point me to the example with both static and dynamic
views or tell me how to organize an application?
I've found a similar question in the discussion
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8a5fad1d442e84c0/e731ea260b4241f4?#e731ea260b4241f4
but no clear answer was given here.
--
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.