Hi,
  I'm implementing a code using GWT. I want to implement history using
ValueChangeHandler. This is a feature in the new 1.6 version of GWT.
This is how my application looks for now

I have a new class for every page I want to create. i.e page1.java and
page2.java each of which extents Composite.
On module load, I assign page1 to rootpanel.
When a button is clicked on page1 i navigate to page2 by

onClickButton ( ) {
    rootpanel.get("foo").clear();
    rootpanel.get("foo").add(new page2());
}

I have added page1's state to the history History.nextItem
(page1state);

I have also added implements ValueChangeHandler to Page1.java class. I
don't have a separate history handler and so I do
History.addValueChangeHandler(this);

What do I do to the unimplemented onValueChange() method in my page1
class. And where do I fire the inital state?
History.fireCurrentHistoryState(); ???

Also, when I am in the second page (page2), and hit refresh, it loads
back the first page and not the current state, even if my token reads
the next state.

Thanks in advance




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to