vaadin

Vaadin Flow 18/19 without Spring Boot?

空扰寡人 提交于 2021-02-19 05:38:14
问题 The https://start.vaadin.com page creates a new Vaadin Flow project for versions 18 or 19 (pre-release). But the resulting project requires Spring Boot. I do not want Spring. I do not want Spring Boot. Both solve problems I do not have. Both add complications I do not want. Is there a way to work with Vaadin 18 or 19 without Spring, with just plain Servlet technology? Is there any Maven archetype available for Vaadin 18 or 19 but free of Spring & Spring Boot? Formerly, we had the Maven

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

自古美人都是妖i 提交于 2021-02-19 04:26:25
问题 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 cell in grid or to a specific row in treegrid. Selection can be achieved if the user presses spacebar. I've tried to add a shortcutListener to grid but it doesn't seem to work with arrow keys. And the grid scrollbar doesn't move with the selected

Scale down the Valo theme’s spacing and widget size to that of the Reindeer theme

瘦欲@ 提交于 2021-02-18 20:17:24
问题 The new Valo theme is now the default in Vaadin 7.3 apps. This theme renders visually with widgets (buttons, fields, and so on) that are dramatically larger (wider and taller) than in the previous default Reindeer theme. This kind of look is now popular in mobile apps in Android and iOS 7/8 as well as some web sites. But those contexts are for brief usage in the range of mere minutes. In contrast, business-oriented desktop-style apps are used by people for much longer work sessions, perhaps

Problem with permitAll in Vaadin and WebSecurity - not working

人盡茶涼 提交于 2021-02-10 18:39:52
问题 I have few views made in Vaadin by @Route and now I want to add Security and some Login. In my SecurityConfiguration class I'm setting antMatchers.permitAll() only for 2 views and for the rest with Role ADMIN . But it is not working as I think it should. It demands login to access every view, and after login I have access to all views no matter what role has the user. I hoped this tutorial will help me, but in there are no views accessible without login. Securing Your App With Spring Security

PDF File download In Vaadin

梦想的初衷 提交于 2021-02-08 06:50:30
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

PDF File download In Vaadin

帅比萌擦擦* 提交于 2021-02-08 06:48:52
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

PDF File download In Vaadin

安稳与你 提交于 2021-02-08 06:48:10
问题 Im trying to download pdf file. when user want to download the file. Pdf file is downloading successfully but im not able to open that downloaded file. same code is working fine with text files. Help Required. // download button code Button downloadBtn = CommonComponents.getUploadImageButton("Download Statement", "150px"); OnDemandStreamResource myResource = createOnDemandResource(summaryReportList); OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);

How to add html format on a vaadin label?

巧了我就是萌 提交于 2021-01-29 19:12:42
问题 I want to add an html formatted string on a vaadin label. The string comes from a database and goes straight to the label, it must be formatted with bold text, line breaks and some other fancy text things. I found a couple of solutions but those were for old version of vaadin, is there any way of doing this on vaadin flow? 回答1: You could add an HTML content to a label using: Label label = new Label(); label.getElement().setProperty("innerHTML","A new line should be created after this <br />

How to create a “spectrum” chart using Vaadin 14+

若如初见. 提交于 2021-01-29 05:05:10
问题 Is there a way in Vaadin 14 (or higher) to create what's called a "spectra" chart? Essentially, it's 99% identical to a "scatter" chart, except that a line is drawn from the point all the way down to the x-axis (please see figures 1 and 2 below which more or looks like a correct spectra chart.). I created a "hack" to achieve these quasi spectrum charts in Vaadin using "line charts" and by adding two "fake" points of intensity 0 to the left and to the right of my immediate point (as shown in

Download with file name defaulting to date-time of user event in Vaadin Flow app

孤街醉人 提交于 2021-01-29 03:00:39
问题 In my Vaadin Flow web app (version 14 or later), I want to present to my user a link that will download a data file to them. The default name of the file to be downloaded should be determined at the moment the user initiates the download. I am aware of the Anchor widget in Vaadin Flow. With an Anchor , the default name for the downloaded file will be the resource name given in the URL of the link. Unfortunately, that is determined when the page loads rather than later when the user clicks the