Please check if you have initialized the place system correctly.
Refer: http://tbroyer.posterous.com/gwt-21-places-part-ii
IMO, This excellent article has everything that you need to know to
get started with Places. Extracting the pieces that may be relevant
for you:
-////////////////
@WithTokenizers(FooPlaceTokenizer.class, BarPlaceTokenizer.class)
interface MyPlaceHistoryMapper extends PlaceHistoryMapper {
}
PlaceHistoryMapper historyMapper = GWT.create(MyPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, defaultPlace);
-////////////////
Good Luck
Prashant
On Tue, Nov 16, 2010 at 2:37 AM, vehdra music <[email protected]> wrote:
>
> I'm trying to learn how to use GWT 2.1 MVP framework.
>
> I maded 2 places, for example:
>
> public class MyProfile extends Place {
>
> public static class Tokenizer implements PlaceTokenizer<MyProfile> {
> public MyProfile getPlace(String token) {
> return new MyProfile();
> }
>
> public String getToken(MyProfile place) {
> return "Hello World";
> }
> }
>
> }
>
> But i don't know why, when i try to go to a place, my history doesn't
> changes (i mean my url in the browser)
>
> clientFactory.getPlaceController().goTo(new MyProfile());
>
> What i am missing that my code doesn't append "#MyProfile" to my
> browser url when i call the goTo() method?
>
> --
> 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.
>
--
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.