Re: Access bindings at runtime
Re: Access bindings at runtime
- Subject: Re: Access bindings at runtime
- From: David Griffith <email@hidden>
- Date: Tue, 03 Feb 2004 13:02:24 +0100
Hi Jonathan,
Having had a closer look, I think that method will only return the bindings
of the component rather than the bindings of each dynamic element. I'll
take a look at it more closely - any other suggestions?
Regards,
Dave.
> Jonathan,
>
> Thanks for that - I should have thought of looking there, still having a
> little trouble finding my way around WO. I think that's exactly what I was
> looking for - what I was wondering is, will WO complain if I add a binding
> to each Dynamic Object called, for example, myName and bind the name I want
> it to have to that? Like, myName="header". I will try it and see, if it
> does not complain about 'nonsensical' bindings, I think this will solve my
> problem.
>
> Cheers!
> Dave.
>
>> David Griffith, email@hidden, wrote:
>>> I need to access the name of the element, but from other posts I have seen
>>> apparently that is not possible. So I was wondering if I could bind an
>>> internal name of my own to a custom binding for each element so that I could
>>> access it at runtime. I need to lookup some data in the db based on this
>>> name.
>>
>> I don't fully understand what you're trying to accomplish, but I want to
>> ensure you know about this method:
>>
>> <http://developer.apple.com/documentation/WebObjects/Reference/API/com/webo
>> bjects/appserver/WOComponent.html#bindingKeys()>
>>
>> I think this will enable you to discover all of a component's bindings at
>> runtime.
>>
>> .......................................................
>> Jonathan 'Wolf' Rentzsch http://rentzsch.com
>> Red Shed Software http://redshed.net (847) 584-7465
>> PGP: b2af 1a09 f881 ebde c9d6 c4d2 c04f a3c0 3ec5 d5f2
>>
>> "better" necessarily means "different"
>> _______________________________________________
>> webobjects-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.