Directory

← Back

History

HistoryExtension for pushState support

Author

Contributors

Rating

The HistoryExtension allows you to harness the power of the HTML5 history API (often called pushState).

To use this extension, you need a browser that supports the HTML5 history API, which is all modern browsers.

This extension is a JavaScriptExtension, which means that no widgetset compilation is required when taking this add-on into use!

Sample code

Map<String, String> stateData = new HashMap<>();
stateData.put("chosenValue", "foo");
historyExtension.pushState(stateData, "/myNewUrl.html");
NavigationStateManager pushStateManager = historyExtension
        .createNavigationStateManager(contextPath + APP_URL);
navigator = new Navigator(this, pushStateManager, this);
navigator.addView("", tableView);
navigator.addView("/table", tableView);
navigator.addView("/about", aboutView);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

  • More stable popstate behavior in IE11
  • The new class UriFragmentNavManager feels more like UriFragmentManager

More info @ https://github.com/wolfie/HistoryExtension/pull/4

Released
2016-12-04
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.6+
Vaadin 7.1+ in 1.1.0
Browser
Firefox
Opera
Safari
Google Chrome
iOS Browser
Android Browser
Internet Explorer
Online