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
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,745
  • 4
  • 29
  • 43
5
votes
1 answer

How to upgrade from Vaadin 23 to Vaadin 24?

I used the Plain Java starter app from the Hello World Starters page of downloads. I updated its Maven POM to the latest versions of dependencies. So Vaadin 23.3.1, Java 19, jetty-maven-plugin 10.0.12, and so on. The POM looks like this:
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
5
votes
1 answer

Dynamic HTML using a Vaadin LitRenderer

Using Vaadin 22+ I'm trying to display some dynamic html in a Vaadin Grid, using a LitRenderer. This could previously be achieved using the now-deprecated TemplateRenderer using this hack var templateRenderer = TemplateRenderer.of("""
Brandon
  • 121
  • 6
5
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 =…
5
votes
2 answers

How adjust the Vaadin components' vertical alignment in a HorizontalLayout?

I want to align the Button on the same line as the Text Fields. The item alignment has been set to Alignment.CENTER, but as you can see from the image, the vertical centers of the TextFields are lower due to the label on top of them. …
KaijuDeluxe
  • 344
  • 1
  • 3
  • 13
5
votes
0 answers

Getting error trying to start a new request while another is active in Vaadin 14

Using Vaadin 14 I am facing the following error while I try to execute below code UI current = UI.getCurrent(); Thread th = new Thread(() -> { UI.setCurrent(current); current.access(() -> { …
kushal Baldev
  • 729
  • 1
  • 14
  • 37
5
votes
1 answer

Vaadin missing SpringSecurityContext in StreamResource callback method

I got a simple StreamResource example where SpringSecurityContext mysteriously disappears when clicking on the download anchor. Basically when download anchor is clicked createInputStream method is called for download file creation but when this…
5
votes
3 answers

Vaadin (Flow): Navigating to destination with a shared object

Problem: I currently have a grid that displays content of type SomeModel. When I click an entry of that Grid I would like to navigate to a view that takes an object as its input to display the entries content. Implementation: To achive this…
Gerrit Sedlaczek
  • 1,231
  • 1
  • 14
  • 32
5
votes
2 answers

How set the label width of a FormLayout in Vaadin Flow?

Using Vaadin 12 with FormLayout and labels left of input fields. I want to set the width of the label column. How to achieve this, using the Java API?
rmuller
  • 12,062
  • 4
  • 64
  • 92
5
votes
2 answers

Vertical or horizontal rule in Vaadin Flow

I want to section off one area of a layout from another visually in my Vaadin Flow layout using the Java API. I want something like the hr horizontal rule found in HTML. I would also want the equivalent, a vertical rule (which was never defined in…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
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
  • 467
  • 1
  • 6
  • 23
4
votes
1 answer

Vaadin 23, converting inline Polymer template for grid columns renderes "NaN" instead of values

I am trying to convert some inline polymer templates for grid columns, and the rendered value in the browser ends up as “NaN” for some reason. So I simplified the template to reproduce the issue as the…
STaefi
  • 4,297
  • 1
  • 25
  • 43
4
votes
1 answer

stop event propagation for Vaadin Flow buttons

I have a Vaadin 23 application where I have a Div element with a Button in it (among other content) and a click listener added to it, as well as to the button: Button button = new Button(); button.addClickListener(event -> { ... }); Div wrapper =…
herman
  • 11,740
  • 5
  • 47
  • 58
4
votes
0 answers

Vaadin Flow UI stops updating

We have some users reporting an odd problem with our Vaadin 23 application in Chrome and Edge. The application randomly "hangs" such that the user can still interact with client-side components, but nothing seems to reach the server. The problem…
4
votes
2 answers

Whats the catch with vaadin hilla instead of flow

I develop webapps with vaadin and flow for some time now (together with spring boot) and just stumbled across hilla, a new vaadin 'addon' or project... (www.hilla.dev). I know that flow and vaadin use typescript for some things but I never needed to…
1
2
3
68 69