java - Multiple view classes in Vaadin -


i'm newbie in vaadin, , i've wondered how can use multiple view classes? mean, without nested classes. http://dev.vaadin.com/browser/doc/book-examples/branches/vaadin-7/src/com/vaadin/book/examples/advanced/navigatorui.java#l21 example code without nested classes, nice, clean object orientated program code.

solved after few hours :) if want navigate view class without nested classes, have this:

ui.getcurrent().getnavigator().navigateto("main"); 

of course first of have add view navigator container in init method:

mainview main = new mainview(); navigator.addview("main",main); 

hope can use hint wisely :)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -