java - how to get the last history token in GWT -
i want previous token of navigation.
for exemple, beingness in page:
http://www.example.com/com.example.gwt.historyexample/historyexample.html#page1
i redirected somehow new page :
http://www.example.com/com.example.gwt.historyexample/historyexample.html#page2
now if want current token, can way:
string currentplace = placemanager.getcurrentplacerequest().getnametoken();
currentplace receive "page2" can't figure how previous token "page1"
you can add together code illustration in onmoduleload() method or class created @ origin of application , of course of study not destroyed afterward
private place previousplace; private place currentplace; eventbus.addhandler(placechangeevent.type, new placechangeevent.handler() { public void onplacechange(placechangeevent event) { previousplace = currentplace; currentplace = event.getnewplace(); } });
java gwt token history
No comments:
Post a Comment