Questions tagged [vaadin10]

Vaadin is a web development platform that consists of components, a Java framework, and tooling. Vaadin 10 is the first release that is not based on GWT anymore but supports webcomponents. Vaadin 10 was superseded by Vaadin 14 in August 2019. Vaadin 10 is supported until Jun 2023, extended maintenance commercially available until Jun 2033.

Vaadin 10 (aka Vaadin Flow) is an open source web application framework for rich internet applications.

142 questions
2
votes
0 answers

TemplateRenderer does not render beans

I'm trying to use TemplateRenderer where I want to propagate models to front-end. userGrid.addColumn(TemplateRenderer.of( "
bilak
  • 4,526
  • 3
  • 35
  • 75
2
votes
2 answers

How to add background image in LoginOverlay in vaadin 13?

I am using Vaadin 13s' new component LoginOverlay. I want to add background image using setTitle() as shown here. loginOverlay = new LoginOverlay(); loginOverlay.setOpened(true); Component titleComponent = new Image(); …
2
votes
1 answer

Can a class implementing RouterLayout could also be defined as @Route

I am Learning Vaadin Flow (Vaadin v10) and am having difficulty with the concepts of Route (@Route as annotation) and RouterLayout. From the documentation that I have already read on Vaadin's website! I could not identify an answer to a particular…
office.aizaz
  • 179
  • 11
2
votes
1 answer

How to handle exceptions thrown in DataProvider methods centrally

When a DataProvider fetch or count method throws an exception, e.g. because the user is not authorized, how could I handle these exceptions centrally? I know there is HasErrorParameter interface to show error views when there is an exception thrown…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
2
votes
1 answer

StreamResource sometimes resource not found when clicking download button in a closing dialog window

I am working on a dialog which has a download link to dynamically generated file via StreamResource and when user clicks on the download button the dialog should close. Simple enough. However when user opens the dialog and clicks on the download…
Julius Koljonen
  • 223
  • 3
  • 9
2
votes
1 answer

Vaadin: display RouterLink view between header and footer

I have this simple layout: @StyleSheet("frontend://styles.css") @Route("") public class MainView extends Main implements RouterLayout { private static final long serialVersionUID = 1L; public MainView(@Value("${env}") String env, @Autowired…
Tyvain
  • 2,640
  • 6
  • 36
  • 70
2
votes
1 answer

Does Vaadin have any suggestions/libraries to minimize DOS or DDOS attacks?

My understanding is that Vaadin's architecture, partly/mainly because it uses AJAX, may be slightly/signficantly more inherently secure than a typical web project built using say react.js/angular + java-rest based solution. Is this true when it…
Jonathan Sylvester
  • 1,275
  • 10
  • 23
2
votes
2 answers

How to use (browser)autocomplete with Vaadin 10 TextField

I try to build an reservation Form with vaadin 10 while building it i encounterd the problem, that the autocompletion we know from every form on te web doesn't work. I put in an name field the name press submit an the next time i want to re-enter…
DavidB
  • 73
  • 1
  • 9
2
votes
2 answers

Vaadin 10 ( - Only Java - ) & Spring Security Login Form

i am trying to use V10 & Spring Sec. based on Bakery Demo. But Demo has Polymer based login button and it has action method on its html form. i implemented login just using Java. But the login button does not trigger anything. FormLayout formLayout…
2
votes
1 answer

Vaadin 10 Dialog doesn't show up

I can't see my Vaadin Dialog which I'm trying to add on a simple Vertical Layout Here is my code: Dialog d = new Dialog(new Label("Simple label")); d.setCloseOnEsc(false); d.setCloseOnOutsideClick(false); Button cancelBtn = new Button("Cancel",…
Lemar
  • 50
  • 4
2
votes
4 answers

Vaadin disable button during an action

How can I acheive this in Vaadin. // inside myButton click event myButton.setEnabled(false); doMyActionThatTakeSomeTime(); myButton.setEnabled(true); Inside the event, the button is never disabled because the UI is not refresh. What would be the…
Tyvain
  • 2,640
  • 6
  • 36
  • 70
2
votes
1 answer

Vaadin 10 Button redicted to URL

On a click on a Button, I need to do some action and then redirect to an external url. All example I find are for older Vaadin version, and doesn't work on Vaadin 10. Can someone provide an example please ?
Tyvain
  • 2,640
  • 6
  • 36
  • 70
2
votes
2 answers

Vaadin 10 slot in vaadin-dialog

I want to create a reusable dialog in Vaadin 10. Therefore I thought of using the tag in vaadin-dialog. I created a html file containing the templated vaadin-dialog.