Hi,
I read several articles about the mvp model in gwt. This guide is very
usefull:
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/tutorial/mvp-architecture.html.
But is not clear to me how to manage the Presenters with UiBinder.
For example if I've a tipical application with header,sidebar,content,
maybe I'll make at least 3 template (ui.xml).
So the App.ui.xml could be something as:
<g:DockLayoutPanel unit='PX'>
<g:north size='121'>
<my:Header></my:Header>
</g:north>
<g:center size="200">
<g:ScrollPanel>
<my:Content></my:Content>
</g:ScrollPanel>
</g:center>
</g:DockLayoutPanel>
where <my:Content> is another ui.xml template with the specific
content.
The entry point is:
public class Main implements EntryPoint {
@Override
public void onModuleLoad() {
ServiceAsync rpcService = GWT.create(Service.class);
HandlerManager eventBus = new HandlerManager(null);
AppController appViewer = new AppController(rpcService,
eventBus);
appViewer.go(RootPanel.get());
}
}
But then if I add the Presenter of App.ui.xml only that presenter will
be binded to the view!! And the presenter/s of <my:Content> when(how)
can be binded?
Can you give me some suggestion or a basic structure of a generic
application with this pattern and uibinder?
Thanks
Best regards
--
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.