Questions tagged [vaadin10]

Vaadin is a web development platform that consists of components, a Java framework, and tooling. Vaadin 10 is the first release that is not based on GWT anymore but supports webcomponents. Vaadin 10 was superseded by Vaadin 14 in August 2019. Vaadin 10 is supported until Jun 2023, extended maintenance commercially available until Jun 2033.

Vaadin 10 (aka Vaadin Flow) is an open source web application framework for rich internet applications.

142 questions
1
vote
1 answer

Vaadin 10+: How can I disable Router?

I'm trying to migrate a Vaadin 8 application to Vaadin 11. I'm trying to use VaadinServlet and UI: @WebServlet(value = "/*", asyncSupported = true) @VaadinServletConfiguration(productionMode = false, ui = TestUi.class) public class TestServlet…
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
1
vote
2 answers

Vaadin 10 and springboot - How to package a jar?

The question is simple, but I spent the last 2 days trying to deploy my app. And so far it doesn't. I have a single CSS file for my style, and when I execute the jar, CSS is not found (404) or the jar won't package. As stated here: Spring Boot…
Tyvain
  • 2,640
  • 6
  • 36
  • 70
1
vote
2 answers

Difference between annotating with @Tag(Tag.DIV) and extending from Div class

I'm learning Vaadin 11 and I have a question. What is the difference between this: public class MyClass extends Div { /... } ...and this?: @Tag(Tag.DIV) public class MyClass { /** } According to the documentation: Div class: Component…
David Ferreira
  • 1,233
  • 17
  • 24
1
vote
1 answer

Vaadin 10: Server connection lost, when clicking Button

Everytime, when I'm clicking on a simple Button, which should pop up a notifation or other stuff I am instantly getting the Notification: Server connection lost, trying to reconnect... I have the same problem when i'm navigating on a view, that…
Lemar
  • 50
  • 4
1
vote
1 answer

spring boot security with vaadin Could not navigate to ''

I am just trying to do a learning exercise with Vaadin 10 and Spring boot. I added Sprint Security as well so the demo prompts for a user name and password. However when I type them correctly the browser just shows: Could not navigate to '' Reason:…
M. A. Wheadon
  • 101
  • 1
  • 8
1
vote
0 answers

Vaadin and CAS : how can I redirect the "/" route?

I am developing a single page app (vaadin 11 + CAS + Spring) These urls are secured: .regexMatchers("/secured.*").authenticated() To log in I enter "localhost:8080/secured" I want to redirect the "/" url so that if I call "localhost:8080" it…
Tyvain
  • 2,640
  • 6
  • 36
  • 70
1
vote
1 answer

How to find out the width of a button in Vaadin 10?

So I have three buttons like this. My goal is to make these buttons have same width. To do this I'd like to check each button width, put the largest value (in this case - 2nd button) in a variable and then make each button's width this value. I…
John
  • 467
  • 1
  • 6
  • 23
1
vote
1 answer

How to download a file with Vaadin 10?

I want to let user to download a file from server. I looked up for the solution and when trying to make an example - ended up with this: @Route("test-download") public class Download extends VerticalLayout { public Download() { Anchor…
John
  • 467
  • 1
  • 6
  • 23
1
vote
1 answer

Vaadin 10 Dialog emulating Vaadin 8 Window Caption

Using Vaadin Flow Java API I would like to emulate a Vaadin 8 Window feature: particularly I need to emulate Caption behaviour. I mean a fixed top "Title" not scrollable as the real content of the Dialog. Anyone can tell me some Example I could…
Barney_IT
  • 33
  • 3
1
vote
2 answers

How do I show a lot of text using Vaadin?

I need to process some data and show processing logs on a webpage. (Around 300 lines of text). I tried to use labels. At first it worked fine - page became scrollable and all text could be seen. But after around 100 labels page became unresponsive.…
John
  • 467
  • 1
  • 6
  • 23
1
vote
2 answers

How to create a vertical menu bar in the left side and content is displayed in the right side in vaadin 10

With Vaadin 10 is there a way to achieve this? Or else vaadin-10 is only supporting top menus? I am very curious about this topic. When I am having a parent layout in a tree like this MainView -> MenuBar -> MenuItemPage(for example main view ->…
user2810472
  • 135
  • 1
  • 10
1
vote
2 answers

How to prevent Vaadin 10 to loose connection when processing for a long time?

I have a simple code, that imitate data processing after clicking a button: @Route("long") public class LongWait extends VerticalLayout { public LongWait() { Button processButton = new Button("Process"); …
John
  • 467
  • 1
  • 6
  • 23
1
vote
3 answers

Vaadin Flow Grid. How to select one row programmatically?

i try to implement navigation with key arrow in the grid. to do this i need to able select one row per row index programmatically. How can i do this? thx.
user1167253
  • 813
  • 1
  • 11
  • 27
1
vote
1 answer

How do I bind Character to a TextField?

I've found an example of how to bind Integer to a TextField: Binder b = new Binder<>(); b.forField(ageField) .withNullRepresentation("") .withConverter(new StringToIntegerConverter("Must be valid integer !")) …
John
  • 467
  • 1
  • 6
  • 23
1
vote
1 answer

Running Vaadin Flow beverage-starter-flow with standalone jetty does not work

Launching beverage-starter-flow with mvn jetty:run then it works just fine. But if download same version of Jetty (9.4.11.v20180605) and launch it through IntelliJ IDEA then I get the following error. How to fix this? Should skeleton-starter-flow…
Mika
  • 1,256
  • 13
  • 18