karthick raj
karthick raj

Reputation: 1

how to create multiple ui page in vaadin

How to create multiple UI pages in Vaadin instead of View?
Now I have created pages using view with Navigator?

Example:

navigator=new Navigator(UI.getCurrent(),this);
navigator.addView("",new Login(navigator,sf,vs));

Upvotes: 0

Views: 2338

Answers (1)

kukis
kukis

Reputation: 4644

According to the Vaadin API Documentation (btw. first link in Google) you can only have as much as one instance of UI per browser window:

The topmost component in any component hierarchy. There is one UI for every Vaadin instance in a browser window. A UI may either represent an entire browser window (or tab) or some part of a html page where a Vaadin application is embedded.

Of course, still you can register multiple UI's on one Server and map them to multiple VaadinServlet's.

Upvotes: 2

Related Questions