These are not the bindings you are looking for :-) Now that you aren't
wrapping in a D2WCustomComponent, the binding is "propertyKey" not "key"
Ramsey
On Dec 9, 2011, at 4:40 PM, James Cicenia wrote:
> 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
>
> _______________________________________________
> 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/rgurley%40smarthealth.com
>
> This email sent to [email protected]
_______________________________________________
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]