• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why is my key always null?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why is my key always null?


  • Subject: Why is my key always null?
  • From: James Cicenia <email@hidden>
  • Date: Fri, 09 Dec 2011 17:40:39 -0600

Here is my custom component:

public class LinkToProject extends ERDCustomComponent {
public EOEnterpriseObject object;
public String key;

    public LinkToProject(WOContext context) {
        super(context);
    }

    

    public EOEnterpriseObject object() {
        return (EOEnterpriseObject) valueForBinding("object");
      }

     

      public String key() {
        return (String) valueForBinding("key");
      }

      

      

    public String projectTitle(){
    return (String)object().valueForKeyPath(key());
    }



The object comes over just fine ,but always a null key?
here is my rule:
(task = 'list' and entity.name = 'PortfolioProject' and propertyKey = 'title') componentName = 'LinkToProject'


Any ideas why the key would be null and not 'title' ?

Thanks
James

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why is my key always null?
      • From: Ramsey Gurley <email@hidden>
    • Re: Why is my key always null?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Interesting DisplayGroup EOEditingContext Interaction
  • Next by Date: Re: Why is my key always null?
  • Previous by thread: Re: Interesting DisplayGroup EOEditingContext Interaction
  • Next by thread: Re: Why is my key always null?
  • Index(es):
    • Date
    • Thread