Questions tagged [vaadin-flow]

Vaadin Flow (a.k.a. Vaadin 10) is the new generation of the user-interface toolkit for building professional-looking, business-oriented single-page web apps. 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.

Vaadin Flow is currently at version 14. It succeeds Vaadin 8 (Framework).

409 questions
59
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,040
  • 1
  • 11
  • 29
16
votes
2 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
  • 4,245
  • 11
  • 24
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
  • 19,599
  • 35
  • 160
  • 321
11
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,040
  • 1
  • 11
  • 29
10
votes
6 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
  • 218,480
  • 72
  • 657
  • 915
8
votes
0 answers

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
  • 4,952
  • 2
  • 12
  • 50
6
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,269
  • 1
  • 29
  • 60
6
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
  • 218,480
  • 72
  • 657
  • 915
6
votes
2 answers

Understanding Vaadin Flow / Vaadin 10

preamble: I'm an advanced Vaadin developer (I've used 6, 7, and now all my project are migrated to Vaadin 8). I'm starting to study Vaadin 10 / Flow, but I find myself in some hot waters. What I'm actually struggling with is the "project" itself.…
Leviand
  • 2,567
  • 3
  • 24
  • 35
5
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
  • 63
  • 5
5
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
  • 103
  • 2
  • 12
5
votes
4 answers

How to disable clear button in ComboBox in vaadin flow?

I need a ComboBox without this clear button. It confuses the users. I believe in Vaadin 8 it could be removed with setEmptySelectionAllowed(true);. How can it be removed in vaadin 10? setAllowCustomValue(false) does not help. Java 8 Vaadin…
John
  • 397
  • 2
  • 17
4
votes
3 answers

Vaadin 14: remove broadcast registration on page refresh

I followed the Vaadin tutorial (Creating Collaborative Views) for broadcasting events and register on them. Registration eventRegistration; @Override protected void onAttach(AttachEvent attachEvent) { log.debug("In attach..."); UI ui =…
4
votes
2 answers

How to handle Access Denied properly in Vaadin 14 LTS

I started implementing authentication and authorization for our applications written in Spring Boot (2.2.6.RELEASE) and Vaadin 14 LTS (14.6.1). I have followed those resources: Securing your app with Spring Security Router Exception Handling I…
4
votes
2 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,491
  • 3
  • 23
  • 28
1
2 3
27 28