private static final long serialVersionUID = 1L;
@Override
protected void onEvent(AjaxRequestTarget target) {
download.setFileName(rm.getObject().getAlternateDownload());
download.setResourceStream(new FileResourceStream(getRecording(rm.getObject().getAlternateDownload())));
download.initiate(target);
}
});
dFLV.add(new AjaxEventBehavior("click"){
private static final long serialVersionUID = 1L;
@Override
protected void onEvent(AjaxRequestTarget target) {
download.setFileName(rm.getObject().getFileHash());
download.setResourceStream(new FileResourceStream(getRecording(rm.getObject().getFileHash())));
download.initiate(target);
}
});
add(download);
update(null, r);