Use this tag for version-specific questions about Vaadin 23 - the open-source platform for web application development. When using this tag, also include the more generic [vaadin] and [vaadin-flow] tags where applicable. Vaadin 23 superseded Vaadin 14 in March 2022.
Questions tagged [vaadin23]
191 questions
5
votes
1 answer
Vaadin: Do I need to persist package.json and package-lock.json?
When you build Vaadin it generates two files: package.json and package-lock.json.
Do I need to persist them in my VCS (Git in my case)?

greenButMellow
- 316
- 1
- 9
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
3
votes
1 answer
Vaadin 23 JavaScript import issue
I have java class which extends the Vaadin Div class, which should be a cookie warning popup (implementation is not yet complete):
//imports
@CssImport("css/info_popup.css")
@JsModule("js/script.js")
@Tag("info_popup")
public class CookiesDiv…

Achille004
- 78
- 5
3
votes
1 answer
Vaadin Maven Multimodule application with vaadin 23
Is there any maven archetype for vaadin 23 multimodule application like we have for vaadin 8 or any online way to create vaadin maven multimodule web app.

tushar sharma
- 105
- 2
- 10
2
votes
0 answers
Vaadin 23 WebSockets iPhone updates with delays
I noticed a strange behavior - sometimes (not always) on my iPhone I click a button with asynchronous logic(@Push), but nothing happens. Then I press another button on the same screen and can see that the response for the first button comes, but now…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
0 answers
Vaadin 23 Resynchronizing UI by client's request - If you are using push with a proxy, make sure the push timeout smaller proxy connection timeout
From time to time I still receive the following error:
c.v.f.s.communication.ServerRpcHandler : Resynchronizing UI by client's request. A network message was lost before reaching the client and the client is reloading the full UI state. This…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
0 answers
Vaadin 23 Stateless Authentication add custom attributes to JWT
Based on the following example https://vaadin.com/blog/jwt-authentication-with-vaadin-flow-for-better-developer-and-user-experience, I'm trying to implement hybrid-stateless application.
Based on the information inside of the JWT token, I'm be able…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
1 answer
How to propagate validation to CustomField sub Components
I have a simple CustomComponent with Person being an simple data class with two string TextFields: name and sname.
This is the class:
data class Person(var name:String, var birth:LocalDate)
class PersonField : CustomField(){
private…

Giuseppe Manzo
- 65
- 1
- 7
2
votes
1 answer
Vaadin 23 override internal error message
when an error occurs inside the application, the user sees the following message:
Is it possible to override it?
I aaded the following:
public class CustomErrorHandler implements ErrorHandler {
private static final Logger logger =…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
1 answer
Vaadin 23 lazy loading Details component
I love Vaadin Details component. But it looks like it is always pre-rendered. Is it possible to turn the Details component into the lazy-loading mode?
I'd like to render the Details content when user expands the panel. Is it possible to achieve with…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
1 answer
Vaadin 23 add click listener to TextField component
Is it possible to add ClickListener to a TextField component? I render a read-only TextField in the Grid column component. The column has expandable details. But when I click on TextField there - nothing happens. With help of ClickListener I plan…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
0 answers
ComponentRenderer on CheckboxGroup make the label 'not clickable'
I have this CheckBoxGroup with a custom renderer:
It is working well EXCEPT you can't click on the label to select le checkbox.
Here is the renderer code:
CheckboxGroup etatsCheckBox = new CheckboxGroup<>("Etats"
,…

Tyvain
- 2,640
- 6
- 36
- 70
2
votes
1 answer
How do I dynamically render an image using LitRenderer and StreamResource in Vaadin Flow?
I'm trying to create a LitRenderer for dynamically generated images that can be either gif/jpg/png files using a StreamResource in Vaadin. I also have the byte[] and so on but I figure using a StreamResource is the better way to do this. That being…

Stephane Grenier
- 15,527
- 38
- 117
- 192
2
votes
1 answer
Vaadin 23 preformatted text output
In Vaadin 8 there is the possibility to show preformatted text with help of the Label component -
Label preLabel = new Label(
"Preformatted text is shown in an HTML
tag.\n" + "Formatting such as\n" + " * newlines\n" + " *…

alexanoid
- 24,051
- 54
- 210
- 410
2
votes
0 answers
Vaadin 23 Grid component and pagination
I'm trying to implement pagination with Grid component. I may be wrong, but unfortunately I'm unable to find a pagination component for Grid in the official Vaadin documentation https://vaadin.com/docs/latest/components/grid. Is there any particular…

alexanoid
- 24,051
- 54
- 210
- 410