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() {
@Override
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.