[seam-commits] Seam SVN: r14153 - branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Aug 18 04:19:19 EDT 2011
Author: manaRH
Date: 2011-08-18 04:19:19 -0400 (Thu, 18 Aug 2011)
New Revision: 14153
Modified:
branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/MailComponent.java
branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/UIBody.java
Log:
JBPAPP-6650 - reset of attachments list after adding to message body
Modified: branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/MailComponent.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/MailComponent.java 2011-08-17 15:02:19 UTC (rev 14152)
+++ branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/MailComponent.java 2011-08-18 08:19:19 UTC (rev 14153)
@@ -22,7 +22,6 @@
{
// Cache Message
-
private UIMessage message;
private static final String FAMILY = "org.jboss.seam.mail";
Modified: branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/UIBody.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/UIBody.java 2011-08-17 15:02:19 UTC (rev 14152)
+++ branches/enterprise/JBPAPP_5_0/src/mail/org/jboss/seam/mail/ui/UIBody.java 2011-08-18 08:19:19 UTC (rev 14153)
@@ -1,6 +1,7 @@
package org.jboss.seam.mail.ui;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.List;
import javax.faces.FacesException;
@@ -83,6 +84,9 @@
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)
{
More information about the seam-commits
mailing list