I have created a widget which allows for easy construction of the breadcrumb design pattern using common GWT patterns (including HasWidget) with relative ease. It is only when trying to wire this widget up to my MVP that I am running into issues.
While the breadcrumbs could be history based, my implementation is of pure hierarchical structure mapped to the logic of what the pages represent. A good example would be a vehicle inventory. The inventory has vehicle manufacturers, each manufacturer has models, and each model has pages for viewing specific info on a component. Navigating into a more detailed view and adding the associated crumbs should be easy as you're only pushing items onto the stack via an event or injecting some kind of controller and calling a method. The things I am uncertain of are: - If the user starts the application directly on viewing a car from a bookmark, who is responsible for publishing the parent crumbs? Obviously work has to be done to fetch information from the server about the names of the parent crumbs. - Clicking a link which navigates "up" a crumb-level but to a different car/manufacturer/whatever requires both removing the more detailed breadcrumbs from the control and changing the current level to point to the correct page. Should the whole trail be rebuilt on every place change? My current line of thinking is for writing some kind of BreadcrumbController which would handle the (re)building of the crumbs and loading any information on parents. This would be a singleton injected with the place controller and request factory. I'd then inject this into each activity for the interaction. Does anyone have any thoughts on this whether critiques on my thoughts, suggestions for a better solution, or perhaps a link to something with similar functionality? -- 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-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.