Use this tag for version specific questions about Vaadin 21 - the open-source platform for web application development. When using this tag also include the more generic [vaadin] tag where possible.
Questions tagged [vaadin21]
32 questions
1
vote
1 answer
Vaadin 21 flow. NumberField width vs NumberField Input Field width
How to set different width (shorter) for input field in NumberField than label or helper for this field.
NumberField numberField = new NumberField("Label");
numberField.setWidthFull(); // full width for the whole NumberField
// how to set width =…

marfe
- 11
- 2
1
vote
0 answers
Vaadin 21: re-translate column with ItemLabelGenerator on locale change
In a Vaadin 21 application I've got a grid with a column that represents an enum. Translation is done like this:
Column myColumn = grid.addColumn(new TextRenderer(new ItemLabelGenerator() {
@Override
…

S. Doe
- 685
- 1
- 6
- 25
1
vote
2 answers
Vaadin 21 flow. How to migrate CustomLayout used to have a panel with border
with vaadin 7 ( we are trying to migrate to v21, very, very, hard) we have this
CustomLayout cl1 = new CustomLayout(new ByteArrayInputStream("
1
vote
1 answer
Vaadin 21 Menubar vs Tabs for navigation
Context: Vaadin 21, Java 8.
On top of a Vaadin 21 sample application (from https://start.vaadin.com/app/ ) I wrote my own RouterLayout with navigation bar on top, body in the middle and footer at the bottom (as exchange for the MainLayout in the…
user17374553
1
vote
2 answers
Vaadin 21 Migration to View-Based Access Control - RolesAllowed not working
This is a follow up question to this question.
I migrated my Vaadin 20 application to 21 to use view-based access control. The Annotations @PermitAll and @AnonymousAllowed are working fine. However when I try to restrict a route to a specific user…

Jonas TM
- 150
- 1
- 11
1
vote
1 answer
Vaadin (Flow) 21 Upgrade from 20 - All routes suddenly return 404
I recently tried to upgrade from Vaadin 20 to Vaadin 21. I followed the upgrading guide and everything seemed to start nicely without any error messages.
But when I try to navigate to any route only my MainLayout is loaded and everything inside…

Jonas TM
- 150
- 1
- 11
0
votes
2 answers
is Vaadin Ready For Three Digits User Agent Strings
We are using Vaadin 7, 14 and 21.
I am curious about the upcomming 3 digits browser version
https://web.dev/chrome-firefox-100/
Is vaadin will have any issues withe the browser version change? or how can we test that?
thanks and best regards
I am…

Aziz
- 9
- 2
0
votes
0 answers
Vaadin 21: "Assertion error: No child node found with id -1" when opening a link in new browser tab
In a Vaadin 21.0.1 application there are some Tabs with a RouterLink in each Tab for application navigation.
In general this works fine. But when I right-click at one of these Tabs / RouterLinks then a new (empty) browser tab opens and this error…

S. Doe
- 685
- 1
- 6
- 25
0
votes
1 answer
Vaadin get/set cursor position / selection start/end in Textfield
I know there was in Vaadin7 (8) some methods the get / set the cursor position of the textfield from server side.
I'm using Vaadin Flow v21, but there are no such methods. How can I get/set the cursor position from server side synchronously? To set…

user1536873
- 81
- 1
- 10
0
votes
0 answers
How to get a Prototype Scoped Osgi Component (which turn out to also be Vaadin component) reference programmatically
I am using Vaadin 21 in Apache Karaf, an Osgi container.
What i want to do :
Create a vaadin Component, annotates it with @Component(scope=ScopeService.PROTOTYPE)
In the View with the @Route, the Vaadin doc says that we cannot use injection…

kevin
- 1
0
votes
1 answer
Vaadin Crud component doesn't load data from JPA
I'm trying to create a Webinterface for my Discord Bot which allows the User to change some Settings of the Bot on their Server.
I store those Settings using Spring JPA. The Problem is that the stored information never shows up in the Crud Component…

Skyriiy
- 41
- 9
0
votes
2 answers
Vaadin: upgraded from v18 to v21: web ui does not load
I upgraded an existing (and working!) Vaadin application that was using v18.0.2 to v21.0.4. With that new version the server side application starts up as usual, it initializes OK and the first requests triggers the frontend compilation (which also…

mmo
- 3,897
- 11
- 42
- 63
0
votes
1 answer
ComboBox in Vaadin 21 shows no Items
I'm trying to use a ComboBox with Vaadin 21. The combo box does not get populated with items, even though I have used different variants of populating. Also the placeholder is not set. The ComboBox remains with a dashed outline (which means…

Chris
- 834
- 1
- 10
- 23
0
votes
2 answers
Not able to make Vaadin Tree Grid work with File System Data Provider
I have a requirement wherein i need to display a tree containing users home folder hierarchy including files and folders. I have been trying to use Vaadin TreeGrid and FileSystemDataProvider for this purpose
I am using Vaadin 21.0.0 and using this…

MAVERICK1985
- 3
- 3
0
votes
1 answer
Vaadin 21/Fusion - ts enum module which is generated from Java enum has all camel case values changed to uppercase
I ran into this problem when trying to bind a combo-box to my model.
The enum values are null when they are submitted to my endpoint class in the backend.

Daniel
- 117
- 1
- 11