On Oct 19, 2005, at 6:02 AM, Janice Cheung wrote:

    More specifically, my "to" String is set to binding value server.getEmailContacts.  In reference to the "to" String:

    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();
     }

    You state that your text field is bound to server.getEmailContacts, but the accessor methods you included are getEmailContactNames() and setGetEmailContactNames().  You must have implemented getEmailContacts() and setEmailContacts() or you would see a runtime error.  Or maybe the text field is bound to server.getEmailContactNames.  Please clarify.

Aloha,
Art

 _______________________________________________
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]

Reply via email to