It doesn’t work also.
Maybe I need to add some dependencies or plugins?
I’m working on a website project.
I already succesfully add my postgreSQL DB to this, im using jdbcTemplate and I can’t make navigation…
I had all main project in the VaadinUI class and I just simply wanna add Button which will hyperlink me to localhost8080:/registration … I dont know’ what to do, maybe I should rewrite the code without VaadinUI class?
I can’t find any tutorial online, I mean everything I tried didn’t work
I made a very minimal sample project here: https://github.com/OlliTietavainenVaadin/v8-navigation . There are two Views, DefaultView and AdminView. DefaultView has an empty string as its viewName and so it’s loaded by default. You can use the buttons on the menu or manually edit the URL to navigate between the views.
EDIT:
I have fully functionally database-related website.
But all methods touching the database are in VaadinUI.
I did side-menu bar, so my view is now in Class View1 and errors are appearing when I wanna access my DataBase.
So basically the problem is… why I can’t acces database from Class View1? ( It extends Composite, not UI now.)
Okay, I know.
My UserService is injecting Bean into the VaadinUI class beacuse it is @SpringUI
Maybe I can write something like that in my Class View1? How to make this injectable?