Questions tagged [vaadin8]

Vaadin 8 is the last primarily GWT-based version of Vaadin, an open-source Java web application framework. EOL Feb 2022, extended maintenance commercially available until Feb 2032.

Vaadin 8 is the last primarily GWT-based version of Vaadin, an open-source Java web application framework. Free support for Vaadin 8 ends in February 2022, extended maintenance commercially available until February 2032.

667 questions
16
votes
2 answers

How to add grid filters in Vaadin 8?

Vaadin 8 just came out. the adding of filters in Grid was never in their documentation, i only found one working solution here in stackoverflow. HeaderCell cell = filterRow.getCell(pid); // Have an input field to use for…
gigz
  • 942
  • 2
  • 9
  • 26
13
votes
1 answer

How to color a grid row conditionally in Vaadin 8?

I want to change the color of a Vaadin grid row based on a value of a cell. I tried it as follows and did not work. SCSS @import "mytheme.scss"; @import "addons.scss"; // This file prefixes all rules with the theme name to avoid causing conflicts…
Hiran Perera
  • 736
  • 1
  • 5
  • 18
12
votes
5 answers

Vaadin 10 for new project

I'm Java developer and I'm going to start the new project. I have the very limited client-side development skills and this is why I really love the idea of Vaadin framework. I have evaluated Vaadin 10 Bakery App Starter application…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
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
10
votes
1 answer

Unable to unwrap data, invalid status CLOSED

Spring-Boot, Vaadin 8 application with vaadin push @Push(transport = Transport.WEBSOCKET_XHR) No problem if the application gets user operation without any pause. Few seconds without any user request/operation get following error on the console.…
tsogtgerel.ts
  • 955
  • 1
  • 15
  • 32
7
votes
1 answer

Cypress and Vaadin app will fire a error popup that prevent test to works

I need to test a Vaadin app, and sometimes, a popup is displayed about a communication problem. This seems to be a Cypress error report, be it is displayed with the Vaadin template, so it is a bit confusing to find witch part is creating the popup…
iXô
  • 1,133
  • 1
  • 16
  • 39
7
votes
3 answers

How to set the size of an Image component in Vaadin and keep the aspect ratio

I have an Image component which I'd like to define the size of 500px by 500px. The problem I have is that my image isn't a square but I'd like to keep the aspect ratio when pushing in the StreamResource to my Image component. How can I do this other…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
7
votes
2 answers

Converting CallbackDataProvider offset and limit to Pageable page and size

I have an existing REST service that accepts PAGE and SIZE parameters /fetchrecords?page=0&size=10 which in turn, creates a Spring Pageable to be used with Spring Repository. Pageable pageRequest = new PageRequest(page, size, Sort.Direction.DESC,…
steve
  • 1,786
  • 1
  • 15
  • 29
7
votes
3 answers

Does Vaadin 8 `Binder::bindInstanceFields` only work with String data types?

Using the Vaadin 8 @PropertyId annotation with the Binder::bindInstanceFields is certainly shorter and sweeter than writing a line of code for each field-property binding. Person person; // `name` is String, `yearOfBirth` is Integer. … @PropertyId…
Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
6
votes
2 answers

Vaadin 8 Grid scrollbars behave erratically when CSS is used for column widths

I have a Grid in my Vaadin 8 application and sometimes the Grid's scrollbars appear when they aren't needed or disappear when they shouldn't. They can even get stuck in a loop. My Grid has five columns, and I only use built-in Renderers that come…
Anna Koskinen
  • 1,362
  • 3
  • 22
6
votes
2 answers

How to use setSortOrderProvider in Grid Vaadin 8?

Im trying to use Grid Component. I need to define the order of a column, I'm using this proyect: https://github.com/vaadin/tutorial/tree/v8-step4 And I add this code: Column name = grid.addColumn(customer -> customer.getFirstName() + " " +…
6
votes
1 answer

Vaadin using SpringSecurity authentication

Currently learning Vaadin8+SpringBoot for Vaadin made me wanna forget about HTML for a while. Anyways, all is good for some CRUD operations until I mixed in SpringSecurity in the project. Well, I've been searching for days now and no solution could…
David B
  • 3,269
  • 12
  • 48
  • 80
6
votes
2 answers

Reloading Vaadin UIs without restarting the application

I am developing a Vaadin 8 UI. At the moment, each time I modify the UI, I have to restart my application. Is there a better way? I have tried attaching the Java debugger and using IntelliJ's Reload Changed Classes feature, but the hotswap fails. I…
Rich
  • 15,602
  • 15
  • 79
  • 126
5
votes
0 answers

With spring boot vaadin spring.jpa.open-in-view not working

I have a Spring Boot based app with vaadin frontend, but the spring.jpa.open-in-view function is not working. The spring boot version is 2.1.2.RELEASE. As I see the OpenEntityManagerInViewInterceptor is registered correctly, but it is called once,…
Sándor Juhos
  • 1,535
  • 1
  • 12
  • 19
5
votes
3 answers

Updating Vaadin project's GWT for Java 11

I'm unable to build my maven project with vaadin and gwt components with JDK 11. I've updated the gwt-user and gwt-dev to latest (2.8.2) version. I'm using Vaadin7, tried with Vaadin8 also. Try to compile with the vaadin-maven-plugin. The output of…
E Kh
  • 105
  • 9
1
2 3
44 45