Questions tagged [vaadin-flow]

Use the [vaadin] and [vaadin-flow] tags for any posts relating to the use of Vaadin Flow. For posts related to any other Vaadin topic, such as Fusion or a specific component, instead tag the post with its corresponding tag, for example: [vaadin-fusion] or [vaadin-upload], respectively.

Vaadin Flow is the new generation of the user-interface toolkit for building professional-looking, business-oriented single-page web apps in Java. Now based on standard Web Components technology.

Vaadin Flow is the major re-write of the venerable Vaadin Framework tool for building professional-looking business-oriented user-interfaces for web apps. This new generation of Vaadin replaces the internal use of GWT with the use of modern Web Components technology.

Vaadin apps are written in Java, executing server-side in a Java Servlet web container. At runtime Vaadin automatically renders a web-standards based user-interface in the client-side web browser via HTML, CSS, JavaScript, DOM, AJAX, XML & JSON, WebSocket, and Push technologies, all done transparently to the Java programmer.

The current Long Term Support (LTS) version of Vaadin is 14. The previous LTS version is 10. Version 10 succeeded Vaadin 8 (Framework).

The current major version is 22.

The next LTS version will be version 23, slated for March 2022.

1023 questions
62
votes
1 answer

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

the following code works perfectly fine in a Java 1.8 VM but produces a LambdaConversionException when executed in a Java 11 VM. Wheres the difference and why does it behave like this? Code: public void addSomeListener(Component comp){ if(comp…
Gerrit Sedlaczek
  • 1,231
  • 1
  • 14
  • 32
19
votes
4 answers

Where should I place my Vaadin 10+ static files?

In Vaadin 10-14, where should I place my static files, such as CSS, JavaScript, and Polymer templates? How about static files such as images? Also, how do I import these files in Vaadin? Is there a difference between Vaadin 14 with npm and Vaadin…
Erik Lumme
  • 5,202
  • 13
  • 27
12
votes
7 answers

New Vaadin 14 app fails to run, error "Failed to determine 'node' tool." Missing Node.js and npm tools

I used the Get Started page to create a new Vaadin 14 app, after choosing the Plain Java Servlet option. The web page successfully downloaded a .zip file which I unzipped, and opened with IntelliJ Ultimate Edition version 2019.2. I waited a few…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
12
votes
1 answer

Vaadin Flow: setting the title

I currently try to set the title of the page. Scenario public class A extends FlexLayout implements RouterLayout {} @Route(value = "b", layout = A.class) public class B extends FlexLayout{} @Route(value = "c", layout = A.class) public class C…
Gerrit Sedlaczek
  • 1,231
  • 1
  • 14
  • 32
12
votes
5 answers

Vaadin 10 for new project

I'm Java developer and I'm going to start the new project. I have the very limited client-side development skills and this is why I really love the idea of Vaadin framework. I have evaluated Vaadin 10 Bakery App Starter application…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
9
votes
3 answers

How to include own icon collection in Vaadin flow?

How do you include your own icons in Vaadin Flow? Do you make an HTML file like this one from Vaadin Icons and include it via @HtmlImport("frontend://path/to/your/icons.html") I did not find any documentation so far. So I guess this is one…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
8
votes
1 answer

Vaadin Flow Grid with Row-Index

How do I add a row-index column to a grid, that will not be sorted along user-sorting of rows? The solution must not include changes to any polymer template, but should rather be done in java.
kscherrer
  • 5,486
  • 2
  • 19
  • 59
8
votes
1 answer

LoginView with PolymerTemplate not recognizing error parameter

I have a LoginView which I basically copied from the bakery starter project. When I run the bakery app and try to login with wrong credentials, there appears an additional div with an error message. However, this error message div does not appear in…
kscherrer
  • 5,486
  • 2
  • 19
  • 59
7
votes
1 answer

Vaadin 14.6.1 - Error: Can't resolve 'lumo-css-framework/all-classes.css'

I am migrating a Vaadin Springboot/Gradle application from Vaadin 14.5.1 to 14.6.1. I copied the new file(s) from the themes folder from a freshly generated app from start.vaadin.com, in particular frontend/themes/my-app/styles.css @import…
macnixde
  • 213
  • 1
  • 9
7
votes
3 answers

Extensive list of Lumo Variables in Vaadin

I would like to do custom theme variations for my Vaadin 20 app. For that I am going to give custom values to Lumo CSS variables available, like --lumo-base-color and --lumo-primary-color. The problem is that I can't find an extensive list of…
Jens Jansson
  • 4,626
  • 4
  • 25
  • 29
7
votes
1 answer

Vaadin 14: Mark error message at TextField as warning

with Vaadin 14.1.23 TextFields I would like to differentiate visually between red error messages (e.g. "This value is too big.") and yellow warnings (e.g. "System will round your input to two decimals."). And optionally maybe blue info…
S. Doe
  • 685
  • 1
  • 6
  • 25
7
votes
2 answers

Vaadin Flow: How to get current URI

I need to get the current servers name an all the other information stored in the URI. In Vaadin 8 it was accessible thru the Page by calling something like this: URI uri = Page.getCurrent().getLocation(); In Flow the Page does not contain such…
Gerrit Sedlaczek
  • 1,231
  • 1
  • 14
  • 32
7
votes
2 answers

Replacement for `AbsoluteLayout` from Vaadin 8 Framework in Vaadin 10 Flow?

The AbsoluteLayout in Vaadin 8 (Framework) enables pixel-position-oriented placement of widgets within a layout. While not my first layout of choice, the AbsoluteLayout is suited to porting code from other UI-building platforms that use…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
6
votes
1 answer

NullPointerException when initializing VaadinServlet using Vaadin 14

I am working on upgrading a Vaadin 8 application to Vaadin 14. I had to manually define an extension of VaadinServlet rather than using Vaadin 14's automatic servlet registration, as I need it to be mapped to a specific URL pattern. I am using…
Evan
  • 175
  • 7
6
votes
1 answer

How to build a working jar file in Vaadin 14 + Spring Boot?

Im trying to run my Vaadin14 project to production and my application cant find any vaadin flow components. I have a default application.properties and POM, and downloaded it from here https://vaadin.com/start/latest. I already have tried, delete…
garagumo
  • 133
  • 2
  • 12
1
2 3
68 69