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
3
votes
0 answers

Vaadin stops responding when I open more than 5 browser tabs in Chrome

I am looking for guidance/ideas on how to debug this problem. Vaadin 8.1.5 including vaadin push. During local development, I can open 50 tabs no problem. Windows 10, eclipse, tomcat 8.0.38 (http), jdk 1.8.0_131. Production: AWS Ubuntu Server 14.04…
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
3
votes
0 answers

Vaadin FileDropTarget terrible performance

I'm trying to use Vaadin 8 FileDropTarget with a Tomcat server. The example code is little bit long, but maybe it will fit here: import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.OutputStream; import…
nagylzs
  • 3,954
  • 6
  • 39
  • 70
3
votes
1 answer

Vaadin Grid Column setMaximumWidth ignored

I have the following code running where myGridExample is a Vaadin 8 grid object. this.myGridExample .addColumn(MapQueryService.RowResult::getFacilityType) .setMinimumWidth(130) …
benstpierre
  • 32,833
  • 51
  • 177
  • 288
3
votes
1 answer

Vaadin Grid ItemClickListener fails to register clicks on column with ImageRenderer

I have the following code which is supposed to show a clickable icon which opens a popup dialog reading out a lengthy note. this.capacityCommentColumn = this.facilityGrid.addColumn( p -> { if…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
3
votes
0 answers

multiline row with dynamic row height in grid in vaadin 8

I am using Vaadin 8. In grid, I have multiple columns, where cells corresponding to one column can have multiple lines. I am able to show the multiple lines using following approach referenceGrid.addColumn(questionAnswerSummary -> …
user1631306
  • 4,350
  • 8
  • 39
  • 74
3
votes
1 answer

EJB async thread with Vaadin, inject not working (Vaadin 8, Vaadin-CDI, EJB ManagedExecutorService thread)

I'm new into Vaadin Framework and Java EE. I'm using Vaadin Framework 8.1.6, Vaadin-CDI plugin 2.0.0, running on TomEE 7.0.2 server. I'm trying to make asynchronous/background data loading using EJB managed thread pool (ManagedExecutorService). I…
blacksun
  • 63
  • 6
3
votes
1 answer

How to navigate through Vaadin grid and select an item using keyboard?

I'd like to know if it's possible to navigate through Vaadin grid or treegrid and select an item using only keyboard arrow keys? From what i've seen while testing the components, the default behavior seems to be either to move only to one specific…
James A
  • 137
  • 1
  • 1
  • 13
3
votes
2 answers

How can i scroll to currently selected row in Vaadin grid?

this.grid.asSingleSelect().addValueChangeListener(event -> { if (!Objects.isNull(event.getValue())) { this.editor.showEditor(event.getValue()); } }); The problem is that editor covers half of grid when it's…
Hex
  • 242
  • 6
  • 21
3
votes
2 answers

How to have a click on component in a grid cell in Vaadin 8 Grid to select cells row?

When clicking a cell in a Vaadin 8 Grid that contains component like VerticalLayout row does not get selected (using Vaadin 8.1.5). If the component does not fill the whole cell then clicking the unused area in cell makes the row selected. I have…
pirho
  • 11,565
  • 12
  • 43
  • 70
3
votes
0 answers

Get parent object of Vaadin `TreeGrid` node

My TreeGid component shows the relation between images and Products. The relation between image and product objects is n:m (see below for a simplified example, product 60148971 is linked to at least two images). When a user selects a product (see…
rmuller
  • 12,062
  • 4
  • 64
  • 92
3
votes
2 answers

Accessing Vaadin 8 Grid cell value

I'm migrating from Vaadin 7 Table to Vaadin 8 Grid. In the Vaadin 7 Table we used IndexedContainer or Container with Property and could access the table cell value with IndexedContainer.getItem(propertyId).getItemProperty(itemId).getValue(); or…
bingele28
  • 61
  • 1
  • 5
3
votes
1 answer

Vaadin 8 grid: Size image in grid cell?

I try to render an image in a grid cell as follows: grid.addColumn(probe -> new ThemeResource("img/" + probe.getStructureData().getImageFileName()), new ImageRenderer() ).setCaption("Structure"); I want to set the size of the image in…
Natalie
  • 445
  • 2
  • 5
  • 18
3
votes
1 answer

How can I access the VaadinSession from a normal Servlet?

I tried: @WebServlet(urlPatterns = "/TestServlet") public class TestServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { VaadinSession…
Reto Höhener
  • 5,419
  • 4
  • 39
  • 79
3
votes
1 answer

Vaadin 8.2.0: How to vertical align image in grid cell

I want to show thumbnail images in a Grid. This is my relevant code (simplified): addColumnVisibilityChangeListener(event -> { if (ID_THUMBNAIL.equals(event.getColumn().getId())) { if (event.isHidden()) { …
rmuller
  • 12,062
  • 4
  • 64
  • 92
3
votes
2 answers

Vaadin 8 Grid sorting doesn't work when using DataProvider

In Vaadin 8, sorting Grid rows is as simple as clicking the column header. This toggles the column between ascending and descending sorting as described here. This works when populating the Grid via grid.setItems() method. However when using a…
Shiri
  • 1,972
  • 7
  • 24
  • 46