Hey, Matti. In our application we`re using version 0.4.0 of your addon + va

Hey, Matti.
In our application we are using version 0.4.0 of your addon + vaadin 14. We have a problem with the generation name generation of the file. The problem is that we want to set the file name even more dynamically than its possible now. We want to set the file name during the call to SerializableConsumer contentWriter this field(the data generation). Is it possible to add that option. In the current implementation the file is generated with the old name.

Best Regards

Did you follow the code example from the repository? It should work. Can you share a code snippet you are using?

Hey Matti, yes we use the same way from the example. But the file name is set before the execution of the writing to the output stream and at that point we are using the wrong name. In the execution of writing the file to output stream we get also the required file name and set it. But the file is still generated with the old name.

SerializableBiConsumer<OutputStream> test = outputStream -> { //Do some checks and find the file name //Writing the file content to the outputStream //Setting the file name in DynamicFileDownloader. A field, which is using 'test'. };

This is basically what we`re doing in simplest case.

\u0000Oh, that’s the issue actually \uD83E\uDD13 Bad docs by me, you ought to override the getter if the name is dynamic. Added some comments to example, the second one is tailored for you:\n\nhttps://github.com/viritin/flow-viritin/blob/7fad3ff26a0a6c9f95033c5d17f3c09349d7ba3c/src/test/java/org/vaadin/firitin/DynamicFileDownloadingDemo.java#L70-L95

Thank you, Matti!