Author: keith
Date: Fri May  2 00:58:43 2008
New Revision: 16475

Log:

Fixing Mashup-779 this was due to the constant having a type

Modified:
   trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
   
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
==============================================================================
--- trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
(original)
+++ trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
Fri May  2 00:58:43 2008
@@ -189,7 +189,7 @@
 
     // The value that is used by the javascript documentation annotation.
     // e.g this.documentation = "documentation";
-    public static final String DOCUMENTATION_ANNOTATION = "scope";
+    public static final String DOCUMENTATION_ANNOTATION = "documentation";
 
     // The value that is used by the javascript targetNamespace annotation.
     // e.g this.targetNamespace = "http://foo.com";;

Modified: 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
==============================================================================
--- 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
      (original)
+++ 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/email/Email.java
      Fri May  2 00:58:43 2008
@@ -40,6 +40,7 @@
 import javax.mail.internet.MimeBodyPart;
 import javax.mail.internet.MimeMessage;
 import javax.mail.internet.MimeMultipart;
+import javax.mail.util.ByteArrayDataSource;
 import java.io.File;
 import java.io.IOException;
 import java.util.Properties;
@@ -49,6 +50,7 @@
     private Properties properties;
     private MimeMessage message;
     private String text;
+    private String html;
     Multipart multipart;
 
     /**
@@ -194,6 +196,19 @@
         return text;
     }
 
+    public void jsSet_html(String html) throws MessagingException, IOException 
{
+        this.html = html;
+        BodyPart messageBodyPart = new MimeBodyPart();
+        DataHandler dataHandler = new DataHandler(
+                new ByteArrayDataSource(html, "text/html"));
+        messageBodyPart.setDataHandler(dataHandler);
+        multipart.addBodyPart(messageBodyPart);
+    }
+
+    public String jsGet_html() throws MessagingException {
+        return html;
+    }
+
     public void jsFunction_send() throws MessagingException {
         message.setContent(multipart);
         Transport.send(message);

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to