Use this tag for version specific questions about Vaadin 12 - the open-source platform for web application development. When using this tag also include the more generic [vaadin] tag where possible.
Questions tagged [vaadin12]
28 questions
7
votes
2 answers
Vaadin Flow: How to get current URI
I need to get the current servers name an all the other information stored in the URI.
In Vaadin 8 it was accessible thru the Page by calling something like this:
URI uri = Page.getCurrent().getLocation();
In Flow the Page does not contain such…

Gerrit Sedlaczek
- 1,231
- 1
- 14
- 32
3
votes
1 answer
Vaadin 12 ItemLabelGenerator of ComboBox when used in grid ComponentRenderer
Today I have upgraded from Vaadin 11.0.2 to 12.0.0 - Everything went smooth, except one thing:
In a grid of mine where I have a rendered column to show a ComboBox, there is a strange issue with the ItemLabelGenerator. I defined it as…

kscherrer
- 5,486
- 2
- 19
- 59
2
votes
1 answer
Vaadin 12 pass object to JavaScript's function: Can't encode class
Vaadin 12, Kotlin project
In my myPage.html I has javascript:
myObject.redirectToCheckout({
sessionId: "1111_2222",
}).
So I need to call javaScript function redirectToCheckout from Vaadin 12 and pass correct…

Alexei
- 14,350
- 37
- 121
- 240
2
votes
2 answers
Best practice for switchable Vaadin 12 themes
I am currently in the process of migrating a Vaadin 8 application over to Vaadin 12. The look and feel should be used by the user and changed on Login or via a button press.
In Our Vaadin 8 application we had 2 themes (a dark and a light one), each…

Loahrs
- 109
- 7
2
votes
2 answers
How can I receive the file contents in my Vaadin service?
I want to add an upload button to my web application. In the HTML template, I added:
I now want to…
Upload

Absonegative
- 77
- 5
1
vote
1 answer
In Vaadin 13, is it possible/easy to have "cell highlighting" in grids when certain conitions are met?
In Vaadin 13, I'm using grids. In other programs (eg even Excel) one can create "highlights" of the cells (either the whole cell's baground is highlighted in a color, eg yellow or red or the cell font is higlighted is in a different color) depending…

Jonathan Sylvester
- 1,275
- 10
- 23
1
vote
1 answer
In Vaadin 13, how can I have ellipses appear on the left of a grid cell instead of right?
In Vaadin 13, I have a grid in which 80% of the content does NOT fill in the cell, so Vaadin 13 intelligently truncates the cell and adds ellipses to indicate that the field is truncated.
However, is there any way in which the ellipse can appear on…

Jonathan Sylvester
- 1,275
- 10
- 23
1
vote
1 answer
Vaadin 12, javaScript: java.lang.IllegalArgumentException: Can't encode class java.util.HashMap to json
In my Vaadin 12 and Kotlin project:
Here myhtml.html