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

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 https://groups.google.com/d/msg/google-web-toolkit/-/2nJFN_3V4BIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment