Hi
Thanks erik
Use static, wich is not great , but work.
Here is the simplified solution :
I use MyWorkActivity.back() instead of History.back()
class MyWorkActivity extends AbstractActivity {
public static boolean allowStopWithoutWarning;
/**
* @see com.google.gwt.activity.shared.AbstractActivity#mayStop()
*/
@Override
public String mayStop() {
if (allowStopWithoutWarning) {
allowStopWithoutWarning = false;
return null;
}
return "Have you finished your work ?";
}
/**
* @see History#back()
*/
public static void back() {
allowStopWithoutWarning = true;
History.back();
}
...
}
--
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.