java - How to avoid redirection from Main application to gwt application when user clickes refresh/F5? -
in application, included gwt module within iframe.
on click of button nowadays in gwt module, assigning new url part of application only, contents of new url coming within/same window.
hyperlink eventstatuslink = new hyperlink(movetomainapplication, ""); eventstatuslink.addclickhandler(new clickhandler() { @override public void onclick(clickevent event) { string eventstatusurl = "/company/mainappservlet?action=launch&id="+ idfromgwt"; // info("eventstatusurl:"+eventstatusurl); window.location.assign(eventstatusurl); //also called native method ::$wnd.location.href = url; not useful me } });
i able redirect main application if user press f5/refresh key on main application page redirected gwt application.
window.location.assign/replace not replace main applications url in browser why?
is there way using gwt ?
on mainapplication user can press f5/refresh key
how avoid redirection main application gwt application ?
is looking ?
you can open desired url in same window using window.open
, setting target _self
com.google.gwt.user.client.window.open(url, "_self", "param1=value," + "param2=value"); }
hope above code give hint .
and have on gwt placemanager also
java javascript gwt url-rewriting
No comments:
Post a Comment