this.attachmentsPanel.clear();
if ( attachments != null && attachments.length > 0 ) {
this.attachmentsPanel.setVisible( true );
for (GWTAttachment attachment : attachments) {
this.attachmentsPanel.add( new ComposeAttachmentPanel( attachment, this ) );
}
}
else {
this.attachmentsPanel.setVisible( false );
}