Author: manaRH
Date: 2012-10-31 12:04:32 -0400 (Wed, 31 Oct 2012)
New Revision: 15337
Modified:
branches/enterprise/WFK-2_1/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java
Log:
bz 868343 fixed wrong backport for mail multiple attachments
Modified:
branches/enterprise/WFK-2_1/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java
===================================================================
---
branches/enterprise/WFK-2_1/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java 2012-10-31
14:40:09 UTC (rev 15336)
+++
branches/enterprise/WFK-2_1/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java 2012-10-31
16:04:32 UTC (rev 15337)
@@ -1,8 +1,8 @@
package org.jboss.seam.mail.ui;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.List;
-import java.util.ArrayList;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
@@ -81,11 +81,12 @@
}
else
{
- // reset the attachment list after adding to message body
- // This is because ui:message can be in ui:repeat tag JBSEAM-4811
- findMessage().setAttachments(new ArrayList<MimeBodyPart>());
+ getRootMultipart().addBodyPart(attachment);
}
}
+ // reset the attachment list after adding to message body
+ // This is because ui:message can be in ui:repeat tag JBPAPP-6650
+ findMessage().setAttachments(new ArrayList<MimeBodyPart>());
}
if (bodyMultipart != null)
{
Show replies by date