Hello I am working on a GWT sample history management application. Here is my onModuleLoad Code.
public void onModuleLoad() {
ContentPanel panel = Conten
History.fireCurrentHistoryState()
invokes your history handlers without actually inserting new history item in browser history stack, while History.newItem(token)
does insert new history token into history stack.
Note: if your current token is the same as new token (i.e. same page is reloaded), then browsers do not insert this into history stack. In this case (current token == new token) History.fireCurrentHistoryState()
has the same effect as History.newItem(currentToken)
.