Ignore Navigation for Specific Screens

This is an old revision of the document!

It's super easy to enable standard Browser navigation for an application. Simply set the application parameter


to true.

If navigation is enabled, it's possible to use the browser buttons, Back and Forward, to navigate between your screens. But sometimes, you don't want navigation for specific screens, e.g. open a screen as modal “popup”. The modal popup is just a detail of another screen and not a real navigation target.

It's possible to disable navigation for screens. You have different options:

  • Implement the interface com.sibvisions.apps.vaadin.IIgnoreNavigation in your work-screen class
    (best option for base work-screen classes)
  • Add the annotation com.sibvisions.apps.vaadin.IgnoreNavigation to your work-screen class
    (good for specific work-screen classes)
  • Set the parameter #IGNORENAVIGATION, e.g.
    HashMap<String, Object> mpParams = new HashMap<String, Object>();
    mpParams.put("#IGNORENAVIGATION", Boolean.TRUE);
    getApplication().openWorkScreen(StatusWorkScreen.class.getName(), Modality.Modal, mpParams);

    (good for on-demand work-screens)

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information