19234

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

Question:

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.

Answer1:

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

<ol><li>Just ensure you are using the right <a href="http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.Location.html" rel="nofollow"><strong>Window</strong></a> import.</li> <li>Read reference for the <a href="http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.Location.html#reload%28%29" rel="nofollow">reload documentation</a>.</li> </ol>

Recommend

  • What should be the text size ratio in android for multiple density device?
  • Aggregating based on “near” row values
  • Override mylocation button in android Google maps api v2
  • Did back key destroy an activity?
  • Client server multithread Socket
  • Why is signal.SIGTERM not dealt with properly in my main thread?
  • How to find documents with exactly the same array entries as in a query
  • Cannot debug project after upgrading to Service Fabric SDK v2.3.301
  • Get pretty git rev name
  • Left and right button misbehaving when trying to add an empty span to contenteditable div
  • How to distribute Java-based software?
  • reduce/reduce conflicts using ocamlyacc
  • How to write string.Contains(someText) in expression Tree
  • Refresh other frame, from another frame. Jquery
  • Full 8 bit adder, illogical output
  • Visual studio alerts workspace already exists
  • How to get the index of element in the List in c#
  • How to format code on aptana 3?
  • Rails AREL .where statement
  • React Router and Arbitrary Query Params: Page Refreshes Unintentionally on Load?
  • PHPStorm Namespace support not working for Symfony2 projects
  • WP7 difficulties binding data to listbox itemssource - won't refresh
  • Are there any libraries for Python to simulate keyboard action?
  • android Navigation Bar hiding and persantage of usable screen overlap
  • C#: Import/Export Settings into/from a File
  • Low TTL with Leveled Compaction, should I reduce gc_grace_seconds to improve read performance withou
  • Silverlight DependencyProperty.SetCurrentValue Equivalent
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • Ionic 2 storage is not cleaning up on uninstall - Only for signed APK
  • Custom Tabgroup Appcelerator
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • How to know when stdin is empty if it contains EOF?
  • iOS: Detect app start via notification press
  • Android fill_parent issue
  • Java: can you cast Class into a specific interface?
  • Debugging ASP.NET on a built-in web server suddenly stops
  • Is there a amazon webstore API for customers?
  • jquery mobile loadPage not working
  • Properly structure and highlight a GtkPopoverMenu using PyGObject
  • How can I get HTML syntax highlighting in my editor for CakePHP?