Use this tag for version specific questions about Vaadin 20 - the open-source platform for web application development. When using this tag also include the more generic [vaadin] tag where possible. EOL Oct 2021, no longer supported.
Questions tagged [vaadin20]
18 questions
8
votes
1 answer
Vaadin production mode builds broken in v20?
Recently our vaadin production build has started failing and I'm too much of a node noob to figure out if this is a local problem or if it is related to vaadin 20.
When I switch back to vaadin 19 the problem goes away and I can reproduce the problem…

Jens Møller
- 525
- 5
- 20
4
votes
1 answer
Vaadin: again: build completely stalled
For the second time I just banged into this situation where a change of the Vaadin version completely halts my build process:
The issue started when I wanted to give my project - which has been building and executing fine - a try to update it from…

mmo
- 3,897
- 11
- 42
- 63
3
votes
1 answer
How to migrate from Vaadin 8 to Vaadin 20 without SpringBoot but with a embedded Tomcat?
The problem I have with my current Vaadin 8 project is that I have a java entry class which starts 2 instances of a Tomcat with some static and dynamic contexts.
With Vaadin 8 I used to link all the libs statically on Eclipse so I didn't use a…

Helmer Barcos
- 1,898
- 12
- 18
2
votes
2 answers
Where has HtmlImport annotation gone?
I am trying to include custom icons as described in this post. But I can not find the @HtmlImport annotation anymore (Flow V. 20). This annotation was widely used, should it have been replaced I would expect to find at least some…

Franco G
- 375
- 3
- 12
2
votes
0 answers
Why does the Vaadin 20+ server take so long to start the webpack dev server?
Hi I want to update my actual Vaadin 8 Project into a Vaadin 20+ one. I configured under src/main/resources/application.properties the property vaadin.whitelisted-packages=com/mycompany/myproject.
Under src/main/java/com/mycompany/myproject I have a…

Helmer Barcos
- 1,898
- 12
- 18
2
votes
1 answer
Vaadin 19: Using NPM modules with own Vaadin dependencies fails
We are using Vaadin Fusion, and are stuck for the time being with version 19. In this version it is not possible to add an NPM dependency that itself depends on Vaadin components.
E.g. if I have an app's package.json like this:
{
"dependencies":…

ThomasH
- 22,276
- 13
- 61
- 62
2
votes
1 answer
Vaadin: How to update a chart's data?
I am difficulties finding a way to update a chart with new data.
One adds data to a chart using:
Configuration conf = chart.getConfiguration();
conf.addSeries(series);
But there is no corresponding "remove(series)"!?!
Thus, if I want to update the…

mmo
- 3,897
- 11
- 42
- 63
1
vote
1 answer
Vaadin Fusion Styling of Sub-Components
How do I apply part styling to a nested Vaadin component? Vaadin components expose "parts" for styling in their published APIs.
Specifically, the vaadin-upload component hosts another component, vaadin-upload-file. I can style the main vaadin-upload…

ThomasH
- 22,276
- 13
- 61
- 62
1
vote
1 answer
Routing within Child Components
In a basic application you have a main vaadin-app-layout with s where the router places child components. But what if such a child component has itself child components and I want to use routes to route between them? Can I have a nested…

ThomasH
- 22,276
- 13
- 61
- 62
1
vote
2 answers
Vaadin20: Scan Java code from Pom dependency
I want to put a Java class in a Maven artifact that uses the Vaadin @Endpoint annotation (from com.vaadin.flow.server.connect.Endpoint), to use this class in multiple Vaadin projects.
Here is a simple example of such a class:
import…

ThomasH
- 22,276
- 13
- 61
- 62
0
votes
1 answer
Vaadin: Automatically route to a child component
I am following a basic routing setup as described in the docs where you have an umbrella component and then multiple child components that render into a of the umbrella component.
So the HTML Template of the main x-layout component looks…

ThomasH
- 22,276
- 13
- 61
- 62
0
votes
0 answers
setColumnOrder() on Grid in Vaadin Flow seems to cause the getSortOrder() list to increment infinitely in the event of the sort listener
I believe I have found a bug in the Vaadin Grid that can be replicated with the code below.
I would like to save the grid's sorting order whenever it's changed and then restore it when the grid is loaded. The main issue is that the GridSortOrder…

Stephane Grenier
- 15,527
- 38
- 117
- 192
0
votes
1 answer
Select component on LitElement template can not inject to server side Java with Vaadin 20.0.3
Select component doesn't work with the code below:
typescript
import {LitElement, html} from 'lit-element';
import '@vaadin/vaadin-ordered-layout/vaadin-horizontal-layout.js';
import '@vaadin/vaadin-select/vaadin-select.js';
import…

Naoki Kimura
- 3
- 1
0
votes
1 answer
Vaadin 14 vs Vaadin 20 for brand-new project
I'm Java backend engineer and would like to start the brand-new project. Unfortunately for me working with UI is some kind of nightmare :) This is why I'm looking for some framework which will abstract me from the low level JavaScript details and…

alexanoid
- 24,051
- 54
- 210
- 410
0
votes
0 answers
Vaadin - Connection lost
I recognized that some days I will receive a "connection lost" after reloading the current page (UI.getCurrent().getPage().reload()). This was not the case some weeks ago. Does it belong together to a new vaadin version? I get the same error after…

Thomas
- 131
- 7