We have an application with multiple EntryPoints. Each EntryPoint contains an MVP configuration with their own PlaceHistoryHandler, PlaceHistoryMapper and PlaceController. Depending on the order that the history handlers were configured, the place treatment is overlapped. I think the problem is raised because the implementation of PlaceHistoryHandler invokes PlaceController.goTo(NOWHERE) when the PlaceHistoryMapper do not find the place, because this place is associated with the PlaceHistoryMapper of another EntryPoint. How I can solve this problem? It is right to use MVP with multiple EntryPoints?
We too need to load many GWT entry points and show a consolidated home page showing the currently available modules. However, rather than using Activities and Places to get the browser to see the modules, we dynamically registered a new context on the OSGi native container. We also used the module rename-to option to map com.longpkg.module.client.Module to /module.A new GWT module is deployed as a service bundle (the backend Java) and the GWT css/img/js as a fragment. When a new GWT module is deployed, the service registers itself and also an ApplicationInfo object. The ApplicationInfo object has information such as the context name, like module_b. This context is registered as a servlet to serve up the GWT static content and the RPC servlets are registered below it (/module_b/myRpcServlet).
Finally, the home page calls a servlet to get the list of current registered modules by returning all registered ApplicationInfo objects and draws them to the page. The OSGi beauty if of course that by turning modules on/off, the links automatically appear/disappear from the home page. And, if a user attempts a link to an unregistered context (i.e. removed) then they just get forwarded back to the landing page.
Thanks a lot, it was an interesting answer. Beyond GWT, I'm curious about how are you managing dynamic ORM extensions, i.e. if you are using JPA, how are you merging domain classes from several OSGi bundles.
--To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/_Am7ZwyGMQkJ.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.