Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Data validate before print
HI,
When I click the print button printing starts immediately, but I need some validations are performed before, ie, printing should only start if the validations return true.
How can I implement this feature?
This is my code now.
Button print= new Button("Print");
OnDemandStreamResource myResource = report.createResource(parameters);
OnDemandFileDownloader fileDownloader = new OnDemandFileDownloader(myResource);
fileDownloader.extend(print);
Hi,
Anybody can help me, how can i perform validation before the print ?