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
0
votes
2 answers

What is the correct way to save a Vaadin CheckBox to JPA?

I'm looking to find a Vaadin example but I didn't find any using of Checkbox to JPA at all. I try this but is work only if I click one time on a checkbox, if click again on the same box is breaks off private Grid createGrid() { grid = new…
Java bee
  • 2,522
  • 1
  • 12
  • 25
0
votes
1 answer

Vaadin Flow download code works for Chrome but not for Firefox - How can I support both?

I have the following code to download a file from Vaadin Flow (12.0.7). exportBtn.addClickListener(e -> { toDownload = FileUtil.getLatestExport(); (toDownload != null) { StreamResource resource = new…
LOLWTFasdasd asdad
  • 2,625
  • 5
  • 26
  • 39
0
votes
1 answer

How to solve NullPointerException when Autowiring component in spring-boot application

When autowiring a component, in this case a @Service, I get a BeanInstantiationException from a NullPointerException. I am using annotation based bean creation, from what I understand all needed is to annotate the class with @Service, @Repository,…
JohVi784
  • 3
  • 3
0
votes
0 answers

Download selected row in txt using Vaadin Grid

Good day all, I would like to know if someone can help me establish the following: I have a grid with a form. Every time I save the form, it creates a new row with the values from the form. What I want now, is a download button on every row, to…
0
votes
0 answers

How to redirect to custom Vaadin Flow Login Route as login form in Spring Security Configuration

I keep getting - Whitelabel Error Page, 404 Not Found - when trying to use a Vaadin Flow login form in Spring Security configuration. I have followed some instructions on how to implement the Spring Security and configure for using a MySQL database…
JohVi784
  • 3
  • 3
0
votes
1 answer

Vaadin 13 UI Components keeps reloading when deployed in Google App Engine

I'm trying to deploy a Vaadin 13 app on Google App Engine. Of course I added the appengine plugin on pom.xml and appengine-web.xml on WEB-INF. When I run this code: mvn appengine:run it works expected when viewed on localhost:8080. However, when I…
Cyberpau
  • 125
  • 9
0
votes
2 answers

How to build Spring boot project which includes vaadin routes and static html pages

I'm building a web app using spring boot, vaadin, and some static html pages (ui frameworks like bootstrap). I want to have both Vaadin routes and static html pages in my project. The static pages is just a basic index.html page which includes some…
0
votes
1 answer

Is there a way, to include a method into a responsive step on a form layout

Does anyone know a way to include a method into a responsive step, for example when (in the code below) the window is resized to the point where the formlayout is less than the specified value at 1010px, the layout changes itself to 1 column like in…
0
votes
2 answers

How to correctly specify dialog size in vaadin-flow

Trying to open a dialog from a grid renderer which contain a button. The problem is that the dialog isn't respecting the specified size. I've tried setting the width and height of the dialog but it doesn't affect the DOM element only its childs…
0
votes
1 answer

Vaadin flow: grid conditional background color

I want to color grid lines, depending on a condition. I try this: Java: gridEtudiant.setClassNameGenerator(t -> { if (t.getEtud_numero().startsWith("2")) { return "error_row"; } return ""; }); Css: td.error_row { …
Tyvain
  • 2,640
  • 6
  • 36
  • 70
0
votes
1 answer

Adding dropzone.js on Vaadin Flow + Spring Boot project

I want to add dropzone.js version 5 to my Vaadin Flow 12.0.7 & Spring Boot 2.1.3.RELEASE project but without any success. I've tried both methods adding dropzone on the page: default one, described here: https://www.dropzonejs.com/#usage And…
0
votes
1 answer

How in Vaadin 12 call JavaScript's method?

In my Vaadin 12 project: import com.vaadin.flow.component.dependency.HtmlImport import com.vaadin.flow.component.dependency.JavaScript import com.vaadin.flow.component.dependency.StyleSheet import com.vaadin.flow.component.html.Div import…
Alexei
  • 14,350
  • 37
  • 121
  • 240
0
votes
1 answer

how to use css flex-direction property in Vaadin 13?

In Vaadin 13 I want to use flex-direction for TextArea's labels in html style but it doesn't work textArea1.addClassName("my-text-area1"); textArea2.addClassName("my-text-area2");
Champ
  • 51
  • 1
  • 7
0
votes
1 answer

StreamResourceWriter error handling via ErrorHandler interface

I have a FileCreator class that implements StreamResourceWriter interface and MainErrorHandler class that implements ErrorHandler. I'm using the MainErrorHandler class as a centralized Exception handler in my project which mostly logs the exception…
Julius Koljonen
  • 223
  • 3
  • 9
0
votes
1 answer

Including css in spring based project with vaadin

Trying to include simple css file to a vaadin route Using spring boot and have a maven project. When i load the page on the client i get this error: Refused to apply style from 'http://localhost:8080/frontend/css/msas_login_page.css' because its…