Validate fields before extension of button is executed

Hello everyone,

my application gives the user the possibility to download a PDF which is filled with some data before it is downloaded. Because of that I need to make sure that the fields are all filled with data before the download is executed, but since I followed the tutorials here the Button doesn’t have a ClickLIstener attached to it but an extension (FileDownloader).

How can I validate before the extension does its work? Normally I would just validate inside the ClickListener.

Have you found a solution for this problem?

I’m facing the same issue: I want to validate data entered by the user before generating the file to be downloaded.