Questions tagged [vaadin-flow]

Use the [vaadin] and [vaadin-flow] tags for any posts relating to the use of Vaadin Flow. For posts related to any other Vaadin topic, such as Fusion or a specific component, instead tag the post with its corresponding tag, for example: [vaadin-fusion] or [vaadin-upload], respectively.

Vaadin Flow is the new generation of the user-interface toolkit for building professional-looking, business-oriented single-page web apps in Java. Now based on standard Web Components technology.

Vaadin Flow is the major re-write of the venerable Vaadin Framework tool for building professional-looking business-oriented user-interfaces for web apps. This new generation of Vaadin replaces the internal use of GWT with the use of modern Web Components technology.

Vaadin apps are written in Java, executing server-side in a Java Servlet web container. At runtime Vaadin automatically renders a web-standards based user-interface in the client-side web browser via HTML, CSS, JavaScript, DOM, AJAX, XML & JSON, WebSocket, and Push technologies, all done transparently to the Java programmer.

The current Long Term Support (LTS) version of Vaadin is 14. The previous LTS version is 10. Version 10 succeeded Vaadin 8 (Framework).

The current major version is 22.

The next LTS version will be version 23, slated for March 2022.

1023 questions
0
votes
0 answers

Vaadin Flow PolymerTemplate

I am new to vaadin flow, I am using Polymer Template, when executing the >project it sends an error NullPointerException: null, what is missing for me to add? @Route public class MainView extends VerticalLayout { public MainView(@Autowired…
0
votes
0 answers

Vaadin Flow in IBM Portal as Portlet

I've been an avid user of Vaadin 8 a couple of years ago for some small projects. Here in my new firm today, I'd like to bring it in as framework, and I've decided to create a small PoC to show. We mainly focus on portals and web applications for…
MarcelloGarini
  • 599
  • 2
  • 13
0
votes
1 answer

Vaadin Flow Grid - how to control the columns when using JPA Entity?

If I use JPA and Vaadin 10 Grid, it adds all the columns in an arbitrary order to the display. grid = new Grid<>(Thing.class); add(grid); How do I make it add just one or two columns, and have control over the order, sizing, widths, etc. My…
antonyh
  • 2,131
  • 2
  • 21
  • 42
0
votes
1 answer

How to jerry-rig a menu bar in Vaadin Flow version 12

Per this forum thread, a proper menubar widget is promised for Vaadin Flow in version 14 for June 2019 next year, according to the Components page in the manual. Until then, that page suggests a menu bar can be jerry-rigged in version 12 using…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
0
votes
1 answer

Dynamically get version of Vaadin Flow in running web app

In a Vaadin Flow app, how does one ask what version of Vaadin is currently deployed?
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
0
votes
2 answers

ExternalResource in Vaadin 10 - Custom Icons for Button

I would like to use a custom icon from a picture file in Vaadin 10. Up to Vaadin 8 it was possibleto load the icon file via ExternalResource: public final static Resource MY_ICON = new ExternalResource("VAADIN/images/my_icon.png"); and then just…
d2k2
  • 726
  • 8
  • 16
0
votes
1 answer

Vaadin Flow/10/11 style component via css

My question is pretty basic. How to add styling from a css-file to a basic vaadin component? What I do NOT want to use: PolymerTemplate getStlye().set(...) Do I have to @ImportHtml, which includes the css-code or do I have to @StyleSheet with the…
unknown404
  • 115
  • 9
0
votes
0 answers

Why does `onAttach` run twice under Tomcat but only once under Jetty in a Vaadin Flow 11 web app?

I took the given Vaadin 11.0.1 app Base Starter and merely added an override of the onAttach method. This method is hook invoked by the Vaadin framework when your component is attached to the display on screen. So, if running the app once, we should…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
0
votes
1 answer

Vaadin Flow & Spring Boot: Error when opened in multiple tabs/windows

I'm currently developing an application with Vaadin Flow (v11.0.0) and Spring Boot (v2.0.4) using the MVP pattern. The application works fine, as long as it's only open in a single tab. When reloading the whole page is refreshed, which is totally…
Katharina
  • 1,612
  • 15
  • 27
0
votes
1 answer

Grid with Viritin ListDataProvider fail randomly

I'm developing a Vaadin Flow (10.0.5) app with several grids inside. All of those use the ListDataProvider from Viritin. The one that cause me headache is generally composed of 200-300 rows (some cases have up to 1200 rows) and has 13 columns. All…
Gauvain Klug
  • 591
  • 4
  • 16
0
votes
2 answers

Could not navigate to "view"

I am using vaadin 10. I would see this error on my login view class if I used @Route("") but when I write it as @Route(value="") it worked. But doing that to another view I get this error. Most questions asked are way too advanced. I just have a…
0
votes
1 answer

Why setDefaultErrorHandler crash my view in vaadin flow?

I wrote my own custom error handler for the UI in Vaadin flow. But when I throw the exception my view crash and not show my human readable error message. I did this in other application using Vaadin 8 and works perfectly. The idea its throw a…
Carlos Laspina
  • 2,013
  • 4
  • 27
  • 44
0
votes
2 answers

Vaadin Flow Grid. How get the data/rows from grid

i use Grid with DataProvider and lazy loading to load the data into the grid. How can i get the data from grid after the data was loaded? I mean, i need get a data from grid that already have a data. i need something like grid.get.... thx.
user1167253
  • 813
  • 1
  • 11
  • 27
0
votes
0 answers

Vaadin cache.js

I am trying to build a treeSelectView using checkboxes. It implements HasValue so setValue hands over a list of nodes which should have checked checkboxes. and those checkboxes will be checked whenever the function is called. And here comes the…
Mr.H.
  • 965
  • 1
  • 10
  • 18
0
votes
2 answers

How to change style of combo box in Vaadin 10

I would like to adapt a combo box component's CSS. The combo box has my style class custom1 added which should disable border radius for left corners. In my shared-styles.html, I tried to adapt CSS properties: .custom1 { --lumo-border-radius:…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71