Hi,
I have build a simple Vaadin Application, from examples of the book. But i cant get it to work.
I have a Navigator on which i add one default view:
navigator = new Navigator(this, verticalLayot); // in my UI Class
navigator.addView("",new TextView("Sample Text"));
When i know open my Browser and Test this with http://localhost:8080/SampleView
The View appears and all seams alright.
Then i added a ViewChangeListener:
[code]
navigator.addViewChangeListener(new ViewChangeListener(){
@Override
public boolean beforeViewChange(ViewChangeEvent event) {
System.out.println("Viewname:"+event.getViewName() + "Params:"+event.getParameters());
System.out.println("Navigationstate:"+navigator.getState());
return true;
}
@Override
public void afterViewChange(ViewChangeEvent event) {
}
});
[/code]And i run this URL on the Page: http://localhost:8080/SampleView/Test/Bla/Foo/Bar
My Expectation was some information in the even.getParams(); But there is nothing: This is my output:
Viewname:Params:
Navigationstate:
Viewname is blank, thats good. But Params, should there not be something or did i misunderstood the params, because i wanted the information from the URL.
Thanks alot for any help.
greetings Michael