Sunday, January 29, 2012

Place change dynamically

I have a place that change dynamically but these changes are not reflected in the URL.

In the activity, a place with information is launched, but the mapper (CachingActivityMapper) needs to put other information, then I tried this code in the Mapper:

        this.eventBus.addHandler( PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() {
            public void onPlaceChange( PlaceChangeEvent event ) {
                Place newPlace = event.getNewPlace();
                if ( newPlace instanceof PlaceTrace ) {
                    ((PlaceTrace)newPlace).setPosition( CachingCenterActivityMapper.getKeyPosition() );
        } );

but the handler is called after writing the URL.

Any suggestions?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment