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

How can I display checkboxes instead of boolean in vaadin grid?

I'm working on a new application using vaadin-spring-boot-starter 21.0.7 and trying to render training database information in a Grid. I'd like to have the first column in the list be a checkbox for Active/Inactive, but I can't figure out how to…
Greg
  • 33
  • 3
3
votes
2 answers

Serve static ressources in vaadin

I want some static resources to be served via HTTP by a vaadin14/spring-boot server. As I understand from this blog post, there is a convention that all resources placed in META-INF/resources(and some other places) will be served as static content…
markus
  • 511
  • 1
  • 4
  • 15
3
votes
1 answer

Vaadin 21 View Roles

I want to rewrite my Vaadin application to Vaadin 21. With the Vaadin starter builder (https://vaadin.com/start) I created a simple app. Currently my main struggle is to apply my simple CustomAuthenticationProvider to the Security manager to able to…
SüniÚr
  • 826
  • 1
  • 16
  • 33
3
votes
1 answer

How to enable badge CSS classes in Vaadin 14.7.x when not using custom theme?

From the documentation: The Badge-specific CSS classes are available as part of the Lumo theme. To use these classes in your application, enable them in your theme’s theme.json And Lumo Badges describes…
rmuller
  • 12,062
  • 4
  • 64
  • 92
3
votes
1 answer

Vaadin 14 Springboot javascript does not work

I'm trying to develop my first Vaadin 14 application, I'm also using Spring boot framework for it. I've created a javascript file, I put it into the folder frontend/src with the name of teams.js and I'm trying to import it with…
Viktor Korai
  • 177
  • 2
  • 13
3
votes
1 answer

Extending Form Layout looks different that inserting Form Layout

the problem I wanted one of my Vaadin-Components to use a FormLayout. To do this the component extends FormLayout (com.vaadin.flow.component.formlayout.FormLayout). The component extends the class indirectly over an other class (should not really…
Dario Viva
  • 215
  • 1
  • 10
3
votes
1 answer

Selecting display field for Vaadin ListBox

I'm populating a ListBox with a list of entities from a MySQL source. I can't see how to tell it which field to use as its ID, and which to use as its display. For ComboBox I can use setItemLabelGenerator to tell it which field to use for display,…
the Ben B
  • 166
  • 8
3
votes
1 answer

I need to add a filter in Vaadin that intercepts all requests

I have set an attribute in the session that would be true or false. If that attribute is true I need vaadin to intercept all requests and redirect it to a new custom Vaadin page. I know there is a interface called VaadinServiceInitListener however I…
3
votes
1 answer

Is there a way to have the Combobox render the selected value like the Select in Vaadin Flow?

For example in the Select component the selected value is rendered as shown here. However when it comes to the ComboBox it is not rendered, only on the dropdown as shown here. I need to use the ComboBox because I need the search functionality, that…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
3
votes
1 answer

How do I add empty spaces in FormLayout in Vaadin Flow?

For example if I have form with 2 columns and 2 rows but want to keep the 2nd column in the first 1st empty how do I do this without adding an empty value (empty Span). ----------------- | field | empty | ----------------- | field | field…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
3
votes
1 answer

Vaadin TextField's value not available in shortcut listener

I want to read a Vaadin Flow TextField's value when the user presses the Enter key. I can add a ShortcutListener to listen for the keypress, but the value of the TextField is null in the listener even though the TextField is not empty: TextField…
ollitietavainen
  • 3,900
  • 13
  • 30
3
votes
3 answers

How to add a button in a compact Vaadin 14 / Flow Grid

Using the inline java editing example for a Vaadin 14 / Flow Grid at: https://vaadin.com/docs/latest/ds/components/grid/#inline-editing-java-only (ignoring the save and cancel portion) how can I add an edit button for a compact grid. All other cells…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
3
votes
1 answer

Production mode

I tired a lot to run the application as production. I added in application.properties "vaadin.productionMode=true" but so the error "Failed to load content of './frontend/index.html'. It is required to have './frontend/index.html' file when…
Thomas
  • 131
  • 7
3
votes
1 answer

Is it possible to display the save/cancel buttons in Vaadin 14 on GridPro when editing the grid

In Vaadin 8's grid you would see the Save/Cancel button when doubleclicking on a row in GridPro. In Vaadin 14 Grid Pro doesn't seem to have that save save/cancel button by default. Is there a way to enable it? It seems like it should be possible…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
3
votes
1 answer

Using Vaadin 8 Add-on with Vaadin 14 Java

I'm building a web app using Vaadin framework version 14. I would like to use a layout component add-on that was written for Vaadin 8. I know it's not that easy since they change the approach from basing on the client engine to render everything…
kupkol
  • 221
  • 1
  • 3
  • 13