Glänzende Perlen Glänzende Perlen - 3 months ago 17x
Java Question

GWTP: Direct navigation to "place" doesn't work

I'm not sure why GWTP by default doesn't allow me to navigate directly to a place in my application by typing in the URL. What I mean by that is I can reveal a place by using

with the
, but I can't go to the specified place by directly typing the path into the browser.

For example, I have a place
and I can load it by

PlaceRequest request = new PlaceRequest.Builder().nameToken(NameTokens.savestatistik).build();

and I can navigate there by clicking a link in the applcation and the URL changes from
and the contents of the place is displayed as required.

But, if I type in
in my browser I get a 404 error.

Do I need to do some kind of GWTP specific URL mapping in addition to this? I haven't seen anything like this in any tutorials on the internet that deals with this issue.


I solved it by removing <inherits name="com.wallissoftware.pushstate.PushState" /> from my *.gwt.xml file. Don't know what PushState even is but it seems to have fixed it.