Jumper
Jumper

Reputation: 133

Vaadin navigation through views or UI?

I'm new in Vaadin. I did vaadin example http://demo.vaadin.com/addressbook/. My question is how I can also create another views and menu which will navigate user. Can I do it with MenuBar? Please explain me right way to do this.

Upvotes: 2

Views: 1446

Answers (1)

Supamiu
Supamiu

Reputation: 8731

I think everything you need is Navigator.

You can instantiate a navigator and attach it to your current page. Then you attach views to it, with names.

And when you want to change view, you can simply call Page.getCurrent().getNavigator.navigate(String viewName)

See documentation for more informations.

Upvotes: 2

Related Questions