Questions tagged [vaadin]
Vaadin is an open-source platform for web application development. The Vaadin platform includes a set of web components, and a Java web framework, and a set of tools.
5,238
questions
0
votes
1answer
22 views
How to change the style of an image inside an iframe
I generate an iframe with Vaadin 7 and the result is:
<div class="zoom-to-fit" style="width: 1200px; height: 900px;">
<iframe src="http://localhost:8090/image.png&...
0
votes
0answers
20 views
Vaadin browser url doesn't update upon returning to default view
I have the following problem with my project and can't get it working. Example case:
MainView class -> Route value ("") => meaning user will see this view class this upon entering the ...
1
vote
1answer
35 views
Vaadin 14 - Text field not displaying enumeration correctly
I have a piece of information that is stored in a database table as a string code value. I have defined an enum to make the code human-readable. An entity class defines the field with the enum.
When I ...
-5
votes
0answers
27 views
Memory leakage test for java application [duplicate]
How do we do a memory leakage test in a java application as we updated our front end- Vaadin version from 13 to 14?
I am using IntelliJ as my IDE.
Can someone help me by giving the process step by ...
0
votes
1answer
20 views
Vaadin CustomField with Tag has no Label
In my Vaadin (14.4.6) application I've got a CustomField like this one: https://vaadin.com/components/vaadin-custom-field/java-examples
When I add a @Tag annotation to my CustomField implementation, ...
0
votes
3answers
41 views
Vaadin constructor with Autowired Spring JPA beans
I have a Spring Boot application
@SpringBootApplication
public class TaxApplication {
private static final Logger log = LoggerFactory.getLogger(TaxApplication.class);
public static void main(...
1
vote
1answer
20 views
How to attach a new BrowserWindowOpener to a button, without destroying the button first?
on Vaadin 7 I have the working code :
private void gridAttachmentsClickItemEventAction(ItemClickEvent event) {
// blablabla some code to get the data from the repository
byte[] data = ...
0
votes
1answer
20 views
vaadin - basic layout - change content after Tab selected
I'm looking at the Basic App layout example for Vaadin
https://labs.vaadin.com/layout-examples/app-layout-basic
I'm trying to to understand the best way to compose the content. I notice that If I use ...
-1
votes
0answers
79 views
Java Enum for months
I'm using Vaadin framework. Currently, I'm using the following to show the months in the Dashboard. But I want to change it to use an Enum.
XAxis x = new XAxis();
x.setCrosshair(new Crosshair()...
1
vote
1answer
57 views
Wait for Vaadin server startup
I've got a Vaadin 14 application (with Spring Boot) and want to do execute some code when the server is fully started and the frontend is compiled, up and running.
Putting the code into a @Component ...
4
votes
1answer
81 views
Duble rows when use row details in Vaadin-grid polymer 2
I try implement row-datails in webcomponnet written in polymer 2. For this I use example : https://vaadin.com/components/vaadin-grid/html-examples/grid-row-details-demos#row-details-with-polymer-...
0
votes
1answer
27 views
Vaadin- updating style when navigating
So I am using Vaadin as a framework in my java web application. In my application I have a menu that allows the user to navigate on the website, some elements on the menu have submenus that get ...
0
votes
1answer
39 views
How use @property decorator syntax in litElement when there are properties from the redux
when we use constructor assign @property decoratort looks like
@property ({type: String}) name = 'Luis';
and its work fine
but when I use redux and therefore _stateChanged for it I try use
@property (...
0
votes
2answers
37 views
Is there a way with a vaadin 8 custom layout to modify the element class attribute on a parent element?
So with a Custom Layout you basically have html. We have this in our template
<div id="test-kit-wrap" class="cell cell-above">
<...
0
votes
1answer
33 views
Vaadin + Polymer Component Does Not Render Correctly
To begin with, I'm not comfortable at all with front-end technologies. I'm trying to make a Vaadin view based on a polymer template. Problem is that the result is not what I'm expecting. When I ...
1
vote
2answers
42 views
how to limit the number of times Vaadin 14 tries to send heartbeat requests
We have a Vaadin 14 (Flow) application which is fronted by an Apache reverse proxy that integrates with Gluu for authentication using OpenID (mod_auth_openidc).
This is generally working fine, except ...
1
vote
1answer
37 views
Vaadin: How do I make a Component selectable with a RadioButton?
I have a use case where the user needs to select items with checkboxes and then has a choice of two radio buttons. Now the plan was to use the radio buttons to select a component. One RadioButton ...
0
votes
2answers
43 views
Vaadin 14 TreeGrid - Cannot add the same item multiple times
Working on a project that will display hierarchies of "tasks". I'm running into a problem where it will not allow for multiple entries of the same object. From what I can tell, the "...
0
votes
2answers
33 views
How to select items from a Vaadin-listBox?
I am trying to select an item from a Vaadin listBox element.
I fill the listBox with an array list of objects from a database. After selecting an object/ list-Item,
i want to fill text fields with the ...
1
vote
1answer
47 views
Two Spring Boot apps setup with two ports throws 500 error when one uses RestTemplate to Post
Ok I have STS 4 and building Spring Boot applications. I want one to handle the GUI using Vaadin and it is working fine. I have another that picks up an ActiveMQ Topic and creates a POST to the ...
1
vote
1answer
69 views
vaadin (14.4.4) application : Failed to determine project directory for dev mode … generates “flow-build-info.json” prior to deploying
(Vaadin version: 14.4.4)
Hi, I'm trying to deploy a Vaadin app on Google cloud platform (app engine). The app runs fine but I'm getting an error at deployment and the "502 bad gateway" error ...
0
votes
1answer
27 views
Preventing selection on grid upon condition
I've got a Vaadin Grid with a SelectionListener. When a particular (current) item is selected, its details are shown in a drawer (triggered by the SelectionEvent). The details can be edited, and when ...
0
votes
1answer
37 views
JPA container OR filter - Vaadin application
I have a vaadin7 applicaiton and a JPA Container for an Entity class. I have ListSelect control that I use to filter that container
private ListSelect generateBrokerSelects() {
ListSelect ...
0
votes
2answers
45 views
How to place two check boxes at the same row in Vaadin CRUD?
I have an entity that has these two fields.
private boolean alarmActive;
private boolean messageHasBeenSent;
And when I show this with Vaadin CRUD API.
GridCrud<Alarm> alarmCrud = new GridCrud&...
0
votes
1answer
65 views
Spring Boot and/or Vaadin autowiring behaviors I do not understand
I am working on a Spring Boot application an am having issues where items are not being auto-wired as I expect. What is adding to this confusion is that I have another Spring Boot application that ...
0
votes
1answer
40 views
Vaadin: How to bind entity “meta data”
I'm tring to figure out how to bind meta data about an entity that's not an actual field in the entity. For example, consider the following:
Task:
title: string
description: string
...
...
1
vote
1answer
32 views
Vaadin: textField disappear after clicking in the grid EDIT button
I have the code shown below which represents a view with two main functionalities:
A simple form that adds a new Object
A grid that represents Objects in the database
I recently added the grid Edit ...
0
votes
0answers
38 views
vaadin grid current row highlight issue
I am using vaadin grid in my project. I am facing some issue with cellClassNameGenerator method.
In my vaadin-grid, the table holds 5000 records. On clicking a particular row, a dialog box is opened ...
0
votes
1answer
40 views
Vaadin app deployed succesfully on Heroku but not loading frontend
I have a problem with deploying Vaadin app on Heroku where it builds succesfully and I can visit the site, but frontend is not loaded at all. There is no error, it just doesn't load. I honestly have ...
-1
votes
1answer
46 views
How to login to backend from frontend in vaadin
My question is how can I login into backend secured by spring security WebSecurityConfigurerAdapter ?
How to send request to login to default page spring security ?
Login page is on localhost:8080/...
1
vote
1answer
45 views
drawerOpened property dont work in vaadin [closed]
I use litElement with vaadin and have next code
<vaadin-app-layout .drawerOpened='false'>
<vaadin-drawer-toggle slot="navbar" ></vaadin-drawer-toggle> ...
0
votes
1answer
31 views
Java: Problems reading/writing UTF-8 .csv file saved in Excel
I'm working on a Java application that accepts .csv files from the user, then reads and writes them to a temp folder on the server to do some processing. Here's some of my IO code:
br = ...
0
votes
2answers
40 views
Align checkbox with checkbox group horizontally in Vaadin 8
My application (based on Vaadin 8) has a CheckBox and a CheckBoxGroup wrapped in a HorizontalLayout.
CheckBox myCheckBox = new CheckBox("My Checkbox");
CheckBoxGroup<String> multi = ...
0
votes
0answers
22 views
How can I check if I've scrolled to the bottom of a scrollable panel
What I'm trying to do with this chat box is when a user sends a message should auto scroll. But if the user is scrolled up while viewing previous messages, do not autoscroll.
What I've already tried ...
0
votes
0answers
24 views
Vaadin item click listener double click behaviour
I am working on a vaadin application. I have provided left single click and left double click actions on a grid row via item click listner. In case of left single click it works correctly, but problem ...
0
votes
0answers
30 views
how to make a dynamic router with parameters in vaadin router
I have the following address http://localhost:3000/script?company=1
How to display the required component at this address? What's wrog with me code?
{
path: '/script?company=:companyId',...
0
votes
1answer
37 views
How to style a vaadin component using css?
I get a vaadin project looking like this:
package com.example.myapplication;
import com.vaadin.annotations.StyleSheet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations....
1
vote
1answer
38 views
how to make vaadin-drawer-toggle in vaadin-app-layout closed by default?
how to make vaadin-drawer-toggle in vaadin-app-layout closed by default?
<vaadin-app-layout>
<vaadin-drawer-toggle slot="navbar"></vaadin-drawer-toggle>
......
0
votes
1answer
52 views
Example of Spring Boot + Vaadin 14 + bootJar + Gradle
I have a working application running in STS IDE... I thought that it would be simple to build a runnable jar since it is a spring boot application but now I am no longer sure. There seems to be no ...
0
votes
1answer
25 views
How to implement multiple filter criteria in Vaadin Grid?
When I want to apply a simple filter on one field, I can just put the name of that field in the path attribute:
<vaadin-grid-filter path="field that we wanna filter">
What is the ...
1
vote
1answer
35 views
Different Number of items in flex rows with css layout
In the mobile version of my application, I have the following items for header layout. App logo, "logged in" text, username, and logout button. What I want is
Logo should be on top left of ...
0
votes
1answer
35 views
how to hang handlers on vaading-grid row / cell using litElement?
I need to track clicks on a row and determine the current one, as well as clicks on a cell, how can I do this in conjunction with litElement?
<vaadin-grid .items ="${test_data}" ...
3
votes
0answers
108 views
Migration code to Quartz job is not working (because needs session scoped beans)
I migrated a code to run asynchronously, in a Quartz job.
Now I'm getting this error when I try to use a session scoped view, called when the quartz job finishes:
org.quartz.JobExecutionException:
...
0
votes
1answer
42 views
how to style the vaadin-grid header?
i am trying to apply styles to the header vaadin grid component but nothing comes out what could be the problem
I have components in page
<script-loader-grid></script-loader-grid>
and ...
0
votes
0answers
31 views
How to save a file on the harddrive many times and don't harm the harddrive?
This is a small issue. I'm using Java Process Builder to call this command with Darknet framework.
./darknet detector test ./cfg/coco.data ./cfg/yolov4.cfg ./weights/yolov4.weights ./data/pictureOfMe....
0
votes
1answer
33 views
How can I clean up/remove the content in AppLayout in Vaadin 14?
How can I show a static component in Vaadin 14? Every time I update the page, I get the error.
In this case, startStopYOLO, cameras, darknet, configuration, weights, thresholds, realTimeCameraImage, ...
1
vote
1answer
97 views
BeanValidation Error - JSR 303 Bean validation implementation not found on classpath
I´m working on this Vaadin Tutorial series.
https://www.youtube.com/watch?v=k-DxZ1reIdM&list=PLcRrh9hGNallPtT2VbUAsrWqvkQ-XE22h&index=11
Text Version: https://vaadin.com/learn/tutorials/modern-...
0
votes
1answer
33 views
How can I increase maximum file upload in Vaadin - Spring Boot
I'm trying to upload a file in Vaadin 14.4.2
MemoryBuffer loadWeightsBuffer = new MemoryBuffer();
Upload loadWeightsButton = new Upload(loadWeightsBuffer);
loadWeightsButton....
1
vote
1answer
57 views
Vaadin Java: Import problem with css file
I´m working on the Vaadin Tutorial series part 8
Video: https://www.youtube.com/watch?v=ttuBu8dYNn0
Text Version: https://vaadin.com/learn/tutorials/modern-web-apps-with-spring-boot-and-vaadin/...
2
votes
1answer
88 views
How to run two spring boot applications on same server?
I have two Spring Boot applications. I want them to run on different ports at the same time on the server, right now I'm testing it locally on my computer and when I run both jars and I'm using one ...