Can i change url(set parameter) without submit? I found this method http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/Window.Location.html#replace%28java.lang.String%29 but it submit page. All GWT state will be lost.
相关问题
- How to run GWT in production mode
- Google Guava 15.0 Error with GWT 2.5.1?
- Javascript instanceof & typeof in GWT (JSNI)
- How do you let UiBinder pass tags without binding
- Maven submodules in eclipse: Resources from one mo
相关文章
- Spring NamespaceHandler issue when launching Maven
- Annotation for GWT compiler to ignore method
- getComputedStyle like javascript function for IE8
- Uploading to Blobstore gives a Java heap OutOfMemo
- GWT ,Vaadin,SmartGwt,ExtGwt ?---from Swing [closed
- GWT JDBC LDAP connection fails
- How do I get the server-side exception message wit
- Best architecture for applications in GWT
If you want to change something that is not in the hash, for example you want to change a parameter in the URL, you can do it like this!
Then you could register a function that handles the user using the back and forward browser buttons as demonstrated here.
Why are you trying to do this? Generally speaking, GWT apps don't change pages - thus they are normally SPAs (single page applications)
When you load a new page from a server, you will lose the state on that page. You can change the hash part of the URL as that won't return to the server, like this:
However, if you're going to do this, I would recommend taking a look at GWT's MVP framework, which has built in support for managing locations using hash tokens.
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
Works nicely in HTML5-browsers. Not in IE8 or IE9!