add(container.setOutputMarkupId(true));
setDefaultModel(rm);
container.add(new Label("fileName"), new Label("duration"), new Label("recordEnd"), new Label("room_id", roomName),
dFLV.setEnabled(false), dAVI.setEnabled(false));
dAVI.add(new AjaxEventBehavior("click"){
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());