Example usage for com.google.gwt.gwtpages.client PageRequestSession PageRequestSession

List of usage examples for com.google.gwt.gwtpages.client PageRequestSession PageRequestSession

Introduction

In this page you can find the example usage for com.google.gwt.gwtpages.client PageRequestSession PageRequestSession.

Prototype

PageRequestSession

Source Link

Usage

From source file:com.google.gwt.gwtpages.demo.client.pages.NavigationPage.java

private void onTransientDataNavigation() {
    PageRequestSession session = new PageRequestSession();
    session.put("foo", "this will not appear in the history token");
    pages.goTo(PageConstants.PAGE_REQUEST_INFO, session)
            .addParameter("param1", "you can still add history parameters").execute();
}

From source file:com.google.gwt.gwtpages.demo.client.pages.NavigationPage.java

private void onCommandPassing() {
    PageRequestSession session = new PageRequestSession();
    session.put(PageConstants.PARAM_BACK_TITLE, "Navigation").put(PageConstants.PARAM_BACK_COMMAND,
            pages.getLastCommand());/*from   w  ww .jav a  2  s  .  c o m*/
    pages.goTo(PageConstants.PAGE_REQUEST_INFO, session).addParameter("param1", 12345).execute();
}