Since GWT 2.0, Google provides MVP pattern to develop large scale GWT
application.
However, the logic of navigating to the next view/page is hard coded
in the Java code.

For example of GWT 2.1.0 HelloMVP, first it requires to register all
places(view/page) with AppPlaceHistoryMapper, then the navigation
logic is embedded inside ViewImpl.

In order to navigation from hello to goodbye, the following piece of
code is needed in HelloViewImpl:

   listener.goTo(new GoodbyePlace(name));

As we know, for server side development, we can use struct-config.xml
for Struts and/or spring-servlet.xml for Spring MVC to control the
navigation.

Just wonder:
Is there any reason that MVP does not provide a similar approach like
Struts/Spring by using declarative config of navigation?

BR/

--Michael

-- 
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