add( new StyleSheetReference( WicketConstants.ID_STYLE_SHEET, AttachmentsComponent.class, "AttachmentsComponent.css" ) );
add( new ListView<File>( "attachments", new ArrayList<File>( resourceFiles ) ) {
@Override
protected void populateItem( @Nonnull ListItem<File> item ) {
final File file = item.getModelObject();
DownloadLink link = new DownloadLink( "downloadLink", file );
item.add( link );
link.add( new Label( "label", file.getName() ) );
}
} );
}