I’m new with Vaadin, and I don’t know how to get the File from the Upload component, I’m always having a server error. I don’t think I understand properly how this works. Any help will be welcome. This is my code. Answer Here’s a code sample from one of my projects FlieUploader.java
Tag: vaadin
How do I exclude certain Vaadin views from authentication?
I want to make a couple of Vaadin (v22) views accessible without a login, i.e. make them publicly available. I looked at this tutorial, which is probably outdated: https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security There it says, that all views not using the @Secured annotation are publicly accessible. In my case it is different. Nothing is accessible at all, unless anotated with @PermitAll then logged
How can I display checkboxes instead of boolean in vaadin grid?
I’m working on a new application using vaadin-spring-boot-starter 21.0.7 and trying to render training database information in a Grid. I’d like to have the first column in the list be a checkbox for Active/Inactive, but I can’t figure out how to get that done. Everything I’ve seen has been for Vaadin 7 or 8. Mostly current code is in MainView.java
How to Listen to Vaadin component events in a JavaFX WebView?
I have created a form with Vaadin Flow (Vaadin version 21) with a save button. This form is then shown in a JavaFX WebView (Version 17.0.1) and now I want to listen to events in the form like save button from JavaFX, so I can update JavaFX parts of the application. I have seen examples like: How to retrieve components
Vaadin object is not an instance of declaring class
I’m trying to call a method in class named (DataActions) to the dashboard view so the grid can be able to receive the objects given after the method execution, but still no luck solving this error (java.lang.IllegalArgumentException: object is not an instance of declaring class). -Class (DataSession) is the class responsible for opening the database session. -Class (DataActions) is the
Vaadin: Cannot get progress dialog to receive/react when the task completes
I’ve written a small Spring Boot/Vaadin application that displays a simple UI to take user input and make a call to another service that takes some time to run. When the task is submitted, I’m displaying a progress dialog that shows a progress bar, a message informing the user what is going on and a close button to allow them
Problem in running application with Vaadin and Spring (MySQL DB)
I am trying to connect a Vaadin project to a MySQL database following the instructions I found here: https://dzone.com/articles/how-to-connect-a-mysql-database-to-a-vaadin-applic I downloaded the ready project in the article (also available here: https://github.com/Liskokuningas/databasemysqlexample) I, then, created the dummy data schema in MySQL Workbench and tried to run the application via the Windows 10 Command line like this: mvn clean install -U /*all
Mark row selected on mouse click in vaadin grid(SelectionMode.MULTI)
I have a Grid with a multi-select option. In a normal way when I click in the checkbox the row is selected with the default selected color. But I need to have the same or other selected color when I click in the grid´s row. I have created a CSS: Imported it in my class view: The code above works
Vaadin with Apache CXF SOAP service
I am new to Vaadin, just generated the application in Vaadin web site and built it locally. Then I added Apache CXF SOAP service to it, but I am unable to use the Tomcat that Vaadin is using, but instead I load SOAP in Jetty using: My Vaadin application is: While this works, I would like to get rid of
Relative coordinates of a click in Vaadin
I’m building an app with Vaadin 14 where the user is required to click an image and the coordinates from that click are then further processed. Vaadin seems to only offer click coordinates relative to the user’s screen or browser. My app needs the coordinates to be relative to the component. Is there a way to accomplish this? Answer The