How to give a refresh equal to Ctrl+ R in gwt web app?

混江龙づ霸主 提交于 2019-12-11 08:34:14

问题


In my web app I am changing locale in settings and I found out the locale change takes effect only after pressing F5 button or Ctrl + R. I have tested different approaches to programmatically make equal refresh (one that changes locale), but no success on that. What is the programmatic equivalent to that refresh event?

I tried Window.Location.reload(); with no desired effect.


回答1:


F5 i.e Ctrl+R equivalent via GWT is com.google.gwt.user.client.Window.Location.reload();

  1. Just ensure you are using the right Window import.
  2. Read reference for the reload documentation.


来源:https://stackoverflow.com/questions/15292110/how-to-give-a-refresh-equal-to-ctrl-r-in-gwt-web-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!