I have a problem with Hyperlink, this code is part of my View:

*<g:Hyperlink ui:field = "newTaskLink" targetHistoryToken='newTask'>New 
Task</g:Hyperlink>*

When I made a click over link, the URL change to: 

http://127.0.0.1:8888/main.html?gwt.codesvr=127.0.0.1:9997*#newTask*

But PlaceHistoryMapper never is called, therefore, my ActivityMapper never 
know the change of place *(#newtask)* and I can never start the activity.

Other places that do not use hyperlink going well.

Some code:

*AppPlaceHistoryMapper*
@WithTokenizers({DefaultPlace.Tokenizer.class, 
NewTaskPlace.Tokenizer.class}) 
public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {
}


*NewTaskPlace*
public class NewTaskPlace extends Place {

    public static class Tokenizer implements PlaceTokenizer<NewTaskPlace> {

        @Override
        public NewTaskPlace getPlace(String token) {
            return new NewTaskPlace();
        }

        @Override
        public String getToken(NewTaskPlace place) {
            return "newTask";
        }
    }
}

*Part of CenterActivityMapper*
--------
@Override
    public Activity getActivity(Place place) {

        if (place instanceof DefaultPlace){
            HomeActivity activity = homeActivity.get();
            return activity;
        } else if (place instanceof NewTaskPlace ){
            TaskActivity activity = taskActivity.get();
            return activity;

        }
        return null;
    }


Thanks!!!!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/SXVHPftdQXYJ.
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