hi, im trying to use this in a grid and the stream/file is from a blob field in a database. Im trying this:
grid.addColumn(new ComponentRenderer<Component, KundeFilePO>(kundeFilePO -> {
Button button = new Button("");
button.setIcon(new Icon(VaadinIcon.FILE));
FileDownloadWrapper buttonWrapper = new FileDownloadWrapper(
new StreamResource(kundeFilePO.getFilename(), () -> KundeFileService.getBlob(kundeFilePO)));
buttonWrapper.wrapComponent(button);
return button;
}))
it shows the button but pressing the button does nothing.
the method getBlob returns a InputStream from the database.
This is wrong how :) ?