|
Greetings! I have a question about WOMailDelivery. I am able to properly send out e-mails using WOMailDelivery features, but when it comes time to edit the "to" String as bound in WOTextField binding, my WOMailDelivery does not take in the modified e-mail values. More specifically, my "to" String is set to binding value server.getEmailContacts. In reference to the "to" String: WOMailDelivery mailer= WOMailDelivery.sharedInstance(); Msg=mailer.composePlainTextEmail(from, to, cc, subject, Msg, sendNow); I have defined get() and set() methods for the string value, EmailContacts. I think the problem lies in my set() method, but I am unsure as to exactly what I am doing wrong. Here are my methods: public String getEmailContactNames(){ NSArray pc=(NSArray)storedValueForKey("serverContacts"); java.util.Enumeration e = pc.objectEnumerator(); StringBuffer tags=new StringBuffer(); Set emails=new HashSet(); while (e.hasMoreElements()){ ServerContact loc=(ServerContact)e.nextElement(); String email=loc.contact().fullName(); if (!emails.contains(email)){ tags.append(email); tags.append(","); emails.add(email); } } return tags.toString(); } public void setGetEmailContactNames(String value) { value=getEmailContactNames(); } I feel as though the setGetEmailContactNames() method is incorrect because I am also unable to save changes of this WOTextField binding to the database. Am I somehow supposed to tokenize the concatenated tags String in my set() method? I do not quite understand what I am doing wrong... Thank you very much for helping me. I really appreciate your help! Kindest regards, Janice |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
