Author: manaRH
Date: 2012-09-24 17:11:17 -0400 (Mon, 24 Sep 2012)
New Revision: 15165
Modified:
branches/community/Seam_2_3/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java
Log:
JBSEAM-4811 - fixed adding multipart in email
Modified:
branches/community/Seam_2_3/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java
===================================================================
---
branches/community/Seam_2_3/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java 2012-09-24
14:08:13 UTC (rev 15164)
+++
branches/community/Seam_2_3/jboss-seam-mail/src/main/java/org/jboss/seam/mail/ui/UIBody.java 2012-09-24
21:11:17 UTC (rev 15165)
@@ -2,6 +2,7 @@
import java.io.IOException;
import java.util.List;
+import java.util.ArrayList;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
@@ -80,7 +81,9 @@
}
else
{
- getRootMultipart().addBodyPart(attachment);
+ // 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>());
}
}
}
@@ -167,4 +170,4 @@
return false;
}
-}
\ No newline at end of file
+}
Show replies by date