Im sorry,but could you expain what needs to be achieved in more details, as Im afraid I did not understand it correctly. Do you want to open another Vaadin window from current Vaadin window or what does the “subUrl” mean ?
For example I’m pressing “some” button from the main page and enters to next URL . Opens URL mainpage/some/. In the page “some” I have for example “next” button and I want to enter to the next URL. as a result mainpage/some/next. So a new empty window appears. Is it understandable?
if under one or another page you mean Vaadin windows, just use openUrl(…) method of the Window class - it will open any local top your app or external url. To open another Vaadin window you need to know it’s URL - use getURL() method of a Window class.
It works ok, let’s assume that main page is window “main”, from above. I want to write code for “mywindow” window that it also opens new window. I apply this code for the “mywindow”, creating new button to process to next page, but it doesn’t works. The exception thrown is:
Cause: java.lang.RuntimeException: Internal problem getting window URL
Can you test this example for one more window.
thanx for help…
Caused by: java.lang.RuntimeException: Internal problem getting window URL, please report
at com.vaadin.ui.Window.getURL(Window.java:710)
at com.example.example.ExampleApplication2.getUr(ExampleApplication2.java:37)
at com.example.example.ExampleApplication1$1.buttonClick(ExampleApplication1.java:36)
Maybe I don’t fully understand you purpose here, but do you really need that other application? If you want to change the whole view, you should try switching windows within one application. Or just switch the layout within one window. Also I suggest you read
chapter four that deals with applications and windows.