Questions tagged [vaadin]

Use the [vaadin] tag for all posts relating to any use of the Vaadin web application development platform. For posts related to a particular Vaadin or a specific component, additionally tag the post with the corresponding tag, for example: [vaadin8], and [vaadin-upload], respectively.

Overview

Vaadin is an open source platform for building web applications. The Vaadin platform consists of a set of web components, a Java web framework, a TypeScript web framework, a Collaboration Engine, and a set of tools.

Flow

The Java web framework, Flow, uses Java for both the frontend and backend code. UIs can be created either by constructing and laying out components with Java or by declaring them with a LitElement template. UI event handling code is implemented in Java and runs on the server. UI state is also maintained on the server.

Vaadin's legacy Java web application development offering, Vaadin Framework, preceded Vaadin 10, and was built on GWT (Google Web Toolkit).

Fusion

The TypeScript web framework, Fusion, uses TypeScript for the UI code and Java for the backend (endpoint) code. UIs are created by declaring them within a TypeScript/LitElement class. UI event handling code is implemented in TypeScript and runs in the browser. UI state is also maintained in the browser.

Components

Vaadin Components are standard WebComponents implemented in LitElement. In addition to being used by Flow and Fusion, Vaadin Components can be used by other web technologies, such as Angular, React, and Vue. Prior to Vaadin 15, Components were implemented in Polymer.

Marketing Blurb

  • Vaadin improves the client side presentation layer by introducing client-server web components for rapid application development.

  • For Flow-based applications, a few lines of Java code and Vaadin takes care of the rest. No complex configurations, no JavaScript. Code on the server side.

  • For Fusion-based applications, the UI gains a reactive TypeScript frontend with a Spring Boot integrated backend, so you can focus on building your app instead of configuring stuff.

  • Wide browser support - Built on Internet standards, Vaadin applications support all modern browsers.

  • Stunning Web Applications - The look and feel makes a difference. Vaadin comes with great-looking components and easy use of themes.

Versions & Roadmap

Summary

  • Vaadin 22, the latest major version, was released on 9 December 2021.

  • Vaadin 14 was released on 14 August 2019 and is the most recent LTS (Long Term Support) version.

  • Vaadin 10 was released on 25 June 2018 and is the previous LTS version.

  • Vaadin Framework 8 was released in Feb 2017.

  • Vaadin Framework 6 and 7 are still also in active use but are not officially maintained.

  • Vaadin 23, the next LTS version, is slated for release in March 2022.

For new projects, version 14 or 22 is recommended.

Details

For the most up-to-date version and roadmap details, see:

Question and Search Hints

For some questions and queries, the answer is same regardless of Vaadin version or framework. However, it is often relevant to include the major version in the question or query as well.

6816 questions
12
votes
3 answers

Vaadin JpaContainer

I'm working this JPAContainer + Hibernate and it takes a long time to load. For example page with SQLContainer loading 60ms and same page with JPA Container loading 1.30s. With JPAContainer in console I see many SQL queries - for each entity -…
Alexey Smirnov
  • 133
  • 1
  • 6
11
votes
1 answer

JavaScript Scope of Vaadin's "AbstractJavaScriptComponent"

I have integrated some HTML/JS Code into my Vaadin WebApplication by creating an AbstractJavaScriptComponent. The Component almost works as intended. How do I call the passInfo() method defined in the "connector.js" without having to manually click…
M.Dan
  • 554
  • 1
  • 4
  • 16
11
votes
7 answers

Chart components for Vaadin

Does anyone knows about any UI component library for data visualization (charts, pies, etc.) for vaadin framework?
Lefteris Laskaridis
  • 2,292
  • 2
  • 24
  • 38
11
votes
3 answers

How to add Validators in Vaadin 8?

In Vaadin 7 there was an addValidator function, but in Vaadin 8 it does not exist. Vaadin 7 Example: TextField user = new TextField("User:"); user.setRequired(true); user.setInputPrompt("Your username"); user.addValidator(new…
Diego D
  • 1,735
  • 3
  • 22
  • 38
11
votes
1 answer

Vaadin redirecting to a URL from button click

I have searched for a long time, but I really cannot figure this out. How do I redirect the user to a new external link (e.g. www.google.com) when they click a button in Vaadin? The only thing I have managed to do so far is to put the link into a…
user3702643
  • 1,465
  • 5
  • 21
  • 48
11
votes
4 answers

Vaadin "A connector with id xy is already registered"

Somewhere in my Vaadin application, I'm getting this exception as soon as I connect using a second browser Caused by: java.lang.RuntimeException: A connector with id 22 is already registered! at…
Atmocreations
  • 9,923
  • 15
  • 67
  • 102
11
votes
5 answers

vaadin 7: Widgetset does not contain implementation

I am trying my hands on vaadin and would like to use gantt chat add-on in my vaading 7 project. https://vaadin.com/directory#addon/vaadin-gantt-diagram:vaadin since this is not compatible with vaadin 7, I am trying to fix some code from the add-on…
Azhar
  • 398
  • 2
  • 12
10
votes
5 answers

Can I do direct streaming of ZipFile in vaadin?

The current architecture of my application doesn't allows me to store a file in server side and create the link to that stored file. So is there any other options (or a code snippet) to directly stream the ZipFile and store it at client side…
Milesh
  • 271
  • 1
  • 8
  • 24
10
votes
5 answers

Vaadin - Refresh grid after row modification

I create simple grid with data from database: BeanItemContainer container = new BeanItemContainer<>(Customer.class, customerRepository.findAll()); Grid grid = new Grid(container); To edit each row the button was created: Button edit = new…
jsosnowski
  • 1,560
  • 3
  • 26
  • 56
10
votes
1 answer

How to access `ServletContext` from within a Vaadin 7 app?

How do I access the current ServletContext from within my Vaadin 7 app? I want to use the ServletContext object’s setAttribute, getAttribute, removeAttribute, and getAttributeNames methods to manage some global state for my Vaadin app. Also, if…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
10
votes
4 answers

Failed to copy artifact or file with maven packaging a web application

I have a problem packaging a web application based on vaadin. I have two projects in my workspace called project A and project B. Project A is referencing B and the dependencies are resolven within the workspace and degub mode correctly, by adding…
marc3l
  • 2,525
  • 7
  • 34
  • 62
10
votes
4 answers

How to set autocomplete="off" in vaadin

Is it possible to set HTML5 attribute autocomplete="off" on TextField in Vaadin 7? I've searched but found no way to set attributes on text fields or just hint browser to disable native autocompletion on input fields in some other way in vaadin.
P. Šileikis
  • 724
  • 1
  • 12
  • 26
10
votes
2 answers

How to integrate maven generated vaadin project into eclipse vaadin plugin?

Eclipse Vaadin plugin has cool autobuild feature. Just clicking "restart application" in debug console will bring up to date application version to live. Unfortunately importing maven generated vaadin project(using m2e) and copy-pasting .project…
float_dublin
  • 481
  • 1
  • 5
  • 13
10
votes
4 answers

Vaadin : How to change favicon?

How can I change favicon of my pages in Vaadin ? I would like to change favicon of my pages but I have no idea where is the place to change it ? Has somebody experience on it ?
Cataclysm
  • 7,592
  • 21
  • 74
  • 123
10
votes
3 answers

How to use Spring Data Repositories as Vaadin JPAContainer

Is it possible to use the org.springframework.data.jpa.repository.JpaRepository Repositories as JPAContainer for Vaadin? We are setting up a new Vaadin 7 Project from scratch with Spring 3.2. The Spring integration is done with Spring Vaadin…
d0x
  • 11,040
  • 17
  • 69
  • 104