Community Answer: Implementing a Side Menu with View Navigation

  Рет қаралды 10,362

vaadinofficial

vaadinofficial

Күн бұрын

In this video, Alejandro Duarte develops a web application with a navigable menu bar that switches views when the menu items are clicked. This is implemented with the Navigator class which, starting from Vaadin Framework 8.2, allows to use the HTML 5 history API to avoid showing hashbangs in the URLs.
Links:
Follow Alejandro on Twitter: / alejandro_du
The code is available on GitHub: github.com/alejandro-du/commu...
Watch more Community Answers here: • Community Answers

Пікірлер: 25
@user-iv4ty6ph4j
@user-iv4ty6ph4j 4 жыл бұрын
This was very helpful, much appreciated :)
@alainbakanga3087
@alainbakanga3087 6 жыл бұрын
Really thank you Alejandro ,i found my way now
@miguelperezcolom3451
@miguelperezcolom3451 6 жыл бұрын
fenomenal. muchas gracias!
@luiseduardoparralesg.352
@luiseduardoparralesg.352 6 жыл бұрын
que bacan, demasiado bacan !!!
@frandevel
@frandevel 6 жыл бұрын
And another question: How would you handle there, the growth of the number of items in the side menu? Wouldn't it clip if it gets bigger than the view size?
@adharsh2208
@adharsh2208 4 жыл бұрын
Hi Alejandro, thanks for the video. What should we do if we need to use navigateTo method in another class(for example a navigation button in view 1 to navigate to view 2)? I am facing a lot of issues when I tried the same. Thanks.
@maurmair
@maurmair 5 жыл бұрын
Very nice video! Any chance this could be updated for Vaadin 10.0.5?
@petmik5022
@petmik5022 6 жыл бұрын
perfect vaadin is amazing, but I dontn know still what is best practice in vaadin if i make many components, I often extend HL, VL, GridLayout, its ok? or its good extend CustomComponent for layouts too? if i want extend Grid, Button every other component so CustomComponent is best practice?
@frandevel
@frandevel 6 жыл бұрын
Thanks a lot for the video Alejandro, just one question: If you add many components to this views, having as main container a CssLayout, wouldn't you get a clipping effect not being able to show components if viewport is smaller than the content size? Don't we need a panel instead? I think this topic about the scrollbars being available is a tricky thing you could think about documenting a bit better. Cheers Fran
@azazpatel8991
@azazpatel8991 5 жыл бұрын
Alejandro, how to fix 'null pointer exception in navigator with vaadin' error when i navigate in vaadin 8 new view. thanks advance
@Nilix5
@Nilix5 5 жыл бұрын
How can i make that there is a blue background on the selected item
@setsuna8117
@setsuna8117 5 жыл бұрын
Why does getNavigator() was used instead of the the Navigator object that was created?
@kappaj01
@kappaj01 6 жыл бұрын
I'm totally new to Vaadin and not 100% sure how it fits together. Vaadin 8.2 seems to be a fairly recent release. Know version 10 is out, but would have expected some backwards compatibility. I I'm using Vaadin 10 then none of the vaadin.ui components are available. Has this moved to a new package or has it been replaced? Cannot find any of the above imports (View, Composite, etc) in Vaadin 10. Running SpringBoot 2 with Vaadin starter 10.0.1 and com.vaadin vaadin-spring-boot-starter 10.0.1 and com.vaadin vaadin-bom ${vaadin.version} pom import
@akiikius
@akiikius 5 жыл бұрын
When i do this: Navigator navigator = new Navigator(this, viewContainer); navigator.addView("view1", ) I get an error: "cannot resolve method addView(java.lang.String" Why is that?
@adildalli
@adildalli 6 жыл бұрын
Great video thanks. for the view buttons, the style changes when they are clicked. do they stay clicked even though we start working on the view. in my case it goes back to unclicked state once I do on something on the view.
@adildalli
@adildalli 6 жыл бұрын
Thanks, it worked for me
@lubasiteddy
@lubasiteddy 5 жыл бұрын
This demonstration will not work with with Vaadin 10. Whats the comparative way of creating views and placeholders in Vaadin 10
@ProgrammingBrain
@ProgrammingBrain 5 жыл бұрын
That's right. This is for Vaadin 8. With 10, you can use @Route(layout=YourLayoutImpl.class). The menu could have several RouterLink components that would invoke the views marked with @Route. I don't have an example atm but hopefully, that gives you an idea on how to implement it by yourself.
@akiikius
@akiikius 4 жыл бұрын
When I try to add components to the new views; nothing appears when I navigate to the view. Any ideas?
@akiikius
@akiikius 4 жыл бұрын
Alejandro Duarte let me check on that possibility.
@akiikius
@akiikius 4 жыл бұрын
Alejandro Duarte this is the error: Component must be attached to a session when getConnectorId() is called for the first time
@akiikius
@akiikius 4 жыл бұрын
Alejandro Duarte @Alejandro Duarte Hi Alejandro; yes am using Vaadin 8; I was able to create and view the new components I added to my new views. Now working on aligning the login form. One step at a time. Thanks for your help!
@epolanco11
@epolanco11 4 жыл бұрын
Can you do a sub-menus?
@epolanco11
@epolanco11 4 жыл бұрын
@Alejandro Duarte cuando yo lo corro me da este error "Component must be attached to a session when getConnectorId() is called for the first time" alguna idea
@renetatuacastillo19
@renetatuacastillo19 6 жыл бұрын
Or you can just download the spring-boot-vaadin-hybrid-menu-0.0.1-SNAPSHOT from github.
Community Answer: Processing a File in a Background Thread
12:06
vaadinofficial
Рет қаралды 7 М.
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 8 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 8 МЛН
Calling REST from Java with Spring WebClient
9:43
vaadinofficial
Рет қаралды 20 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 543 М.
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 15 М.
Introduction to Vaadin Designer with IntelliJ IDEA
21:46
vaadinofficial
Рет қаралды 21 М.
Lightning Talk: Vaadin Flow framework in a nutshell
5:38
SpringDeveloper
Рет қаралды 5 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 243 М.
Introduction to Vaadin - Your first application with Framework 8
12:34
Laravel Dusk: painless browser automation
20:49
Aaron Francis
Рет қаралды 15 М.
Implementing a login form in Java
10:51
vaadinofficial
Рет қаралды 10 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 5 МЛН
КРАХ WINDOWS 19 ИЮЛЯ 2024 | ОБЪЯСНЯЕМ
10:04