Questions tagged [gwt-history]

GWT's History mechanism allows you to interact with the browser's history stack.

GWT applications as ajax-applications do not interact with the browser by default in the same way as static web pages. History mechanism in GWT makes history support fairly straightforward.

GWT's History mechanism has a lot in common with other Ajax history implementations, such as RSH. The basic premise is to keep track of the application's "internal state" in the url fragment identifier. This works because updating the fragment doesn't typically cause the page to be reloaded.

This approach has several benefits:

  • It's about the only way to control the browser's history reliably.
  • It provides good feedback to the user.
  • It's "bookmarkable". I.e., the user can create a bookmark to the current state and save it, email it, et cetera.

Example from documentation.

50 questions
10
votes
1 answer

Using GWT History to pass parameters?

I have a page called Orders and a page called OrderDetails. As described in the excellent MVP tutorial I'm working with History (with a central ValueChangeListener) and an "event bus" HandlerManager. I have a handler registered for the event that…
Epaga
  • 38,231
  • 58
  • 157
  • 245
7
votes
4 answers

GWT. Remove anchor part url

Hi I am using GWT and its standart way to support history via "History" class. It is very convenient but how can I remove anchor part from an url? For example: My base url: http://www.mysuperwebsite.com/myapp While using application I move to a…
Zalivaka
  • 763
  • 2
  • 13
  • 20
5
votes
5 answers

GWT: How to suppress hyperlink so that it doesn't change my history token

I want to make my hyperlinks act like buttons (only respond to Click event) however, they change the history token automatically when you click on them, which messes up my history mechanism in my application. Is there a way to suppress the default…
jim chill
4
votes
3 answers

GWT History remove item

is it possible to remove a History item in gwt? What i want to achieve is that in a special case pressing the browsers back button will show up the second history item from back. I know i can do it by manually calling History.back();, but i don't…
kukudas
  • 4,834
  • 5
  • 44
  • 65
4
votes
2 answers

How do I determine whether I am going "forward" or "backward" through my History in GWT?

I am looking at History and History JavaDocs in GWT and I notice that there is no way to tell whether the forward or backward button was pressed (either pragmatically or by the user). The "button press" is handled by your registered…
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
4
votes
1 answer

GWT: Places, History and MVP by Example

Say I want to create a GWT app that consists of two simple "screens": A Main Menu that users see when the app first starts up (they go to specific URL) - forget login screens, etc., for this simple example; and An Edit Preferences…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
3
votes
1 answer

GWT MVP Update the History-Token without changing the Activity

my problem is the following: I have a MVP GWT application with a table in which datasets are shown. There are several hundreds of datasets and so I decided to split the table in pages of 20 results each. I load each page from the server via a…
jcvj
  • 130
  • 8
3
votes
1 answer

What is need History.fireCurrentHistoryState() in GWT History?

Hello I am working on a GWT sample history management application. Here is my onModuleLoad Code. public void onModuleLoad() { ContentPanel panel = ContentPanel.getInstance(); if(History.getToken()!=null && History.getToken().length()==0) …
Sanjay Jain
  • 3,518
  • 8
  • 59
  • 93
3
votes
5 answers

GWT History question

What is consider as a good design regarding back/forward project capabilities. I mean - uses are able to navigate through the application only via back/forward browser buttons or to have also and back buttons in the application , is it a good…
adgfs
  • 423
  • 6
  • 17
3
votes
3 answers

Preserving navigation/history state in GWT with MVP pattern

I've implemented a basic GWT app based on on the MVP pattern Google recommends. What I'm trying to figure out is the best way to store navigation/history state once you fill your application with data. Let's say you have a search that returns a…
stuff22
  • 1,662
  • 4
  • 24
  • 42
3
votes
4 answers

History management (Refresh Button)

Please give me idea about the management of data in GWT. I am using Gwt in my travel portal project and my web pages is related to previous page data but when i press the refresh button of browser's then my data is lost . so please inform me if…
Vijay Dubey
  • 31
  • 1
  • 2
3
votes
1 answer

How to find out browser back button click using gwt history

I m using history listener for forward and back browser button.But i m not able to find out history back button click.If any idea plz rply..urgent for me...Thank you..
ruchi
  • 996
  • 12
  • 30
2
votes
2 answers

GWT MVP History back

I have a MVP application implemented. Back button is working fine. I'd like to programatically go back to the previous place. How would I do that? I'm looking for something like: clientFactory.getPlaceController().goBack(); Thanks.
Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59
2
votes
2 answers

GWT History: historical token

The GWT History: com.google.gwt.user.client.History has a back() method which takes you to previous history token. But is there a way to get value of previous history token? Or even 2 steps previous history token? I checked the back() method…
Vishal Biyani
  • 4,297
  • 28
  • 55
2
votes
1 answer

Why do I need to overide "onPlaceRequest" in every Presenter class?

I'm managing the History in my project via Places. What I do is this: implement PlaceRequestHandler on top level (for example AppController), register it -> eventBus.addHandler(PlaceRequestEvent.getType(), this); implement method "onPlaceRequest"…
adgfs
  • 423
  • 6
  • 17
1
2 3 4