On Jun 18, 7:46 pm, André Moraes <
andr...@gmail.com> 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.