On Jun 18, 7:46 pm, André Moraes <[email protected]> wrote: > History.getToken() isn't deprecated?! This is the javadoc for History.getToken() in 2.1:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/History.html#getToken() Gets the current history token. The handler will not receive a ValueChangeHandler.onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent) event for the initial token; requiring that an application request the token explicitly on startup gives it an opportunity to run different initialization code in the presence or absence of an initial token. So guess is not deprecated. > I use the History.addValueChangeHandler. > > History.addValueChangeHandler(new > ValueChangeHandler<String>() { > > @Override > public void onValueChange(ValueChangeEvent<String> > event) { > location = event.getValue(); > } > }); > > But it only works with the information after the "#", not with the > parameters in the QueryString part of the URL. Yep, now u tell... There is another way to access the location, but i never used. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/Window.Location.html BTW about the question about how to compile it. You can use ant or maven. -- 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.
