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
Post a Comment