Mistake was that the hyperlink itself calls a BrowserEvent which uses the History to call the new place. I just added the property targetHistoryToken="MyPlace:token" to the hyperlink and removed the UiHandlers from the hyperlink.
On 20 Jan., 15:46, Erik Bens <[email protected]> wrote: > Hi everyone, > > I've got a little problem here with my first self-created gwt 2.1.1 > app. I've got a menu on top which has its activity mapper (it's a bit > like the context menu of Thomas in his > app:https://github.com/ashtonthomas/beans) > and another activity mapper responsible for my content. > Now I'd like to navigate via this menu, but not by giving the anchor a > target "#SomePlace" but by using a hyperlink and clickevents. Okay > this is possible via @UiHandler and I'm calling the implementation of > the delegate which is my activity. This activity tells the > placeController to go to a new place. > > So far so good > - the first activity mapper maps the content (two places to two > activities) > - the second activity mapper maps the navigation (which is at the > moment only one place) > > If I click on one of the navigation buttons it calls the new place but > directly after the old place is called again? > > Mappers: > --- One --- > public Activity getActivity(Place place) { > if (place instanceof WelcomePlace) { > return > welcomeActivityProvider.get().getActivityForPlace((WelcomePlace) > place); > } > if (place instanceof ArticleListPlace) { > return > articleListActivityProvider.get().getActivityForPlace((ArticleListPlace) > place); > } > return null; > } > --- Two --- > if (place instanceof NavigationPlace) { > return > navigationActivityProvider.get().getActivityForPlace((NavigationPlace) > place); > } > return null; > > } > > The start implementation of the activities only set the new delegate > and the view to the panel. What's wrong there? I'll post more code if > needed. > > Regards > Erik -- 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.
