On my GWT app (which is in maintenance), I’d like to refresh a list of people once’s one of them has been deleted.
I’m looking into how to send the right AJAX request to refresh the list of followers, but I’m curious if it’s acceptable to call Window.Location.reload()?
Calling reload seems lazy and overkill since only a part of the page should update – AJAX.
Please advise me on whether Window.Location.reload() is OK, and why/why not.
Never reload a page if you only need to remove a single line of text. Depending on which widget is used to display the list of names in your case, it would most likely take just one line of code in GWT to remove it. This is as much code as necessary to reload the page, but it offers a better user experience and consumes much less resources.