Re: Semantics of ^ in value bindings in .wod file.
Re: Semantics of ^ in value bindings in .wod file.
- Subject: Re: Semantics of ^ in value bindings in .wod file.
- From: Ulrich Köster <email@hidden>
- Date: Thu, 27 Dec 2007 10:23:44 +0100
Moin,
my 2 cents on it.
^foo in the wod is the same as parent().valueForBinding("foo") in java
parent.foo in the wod is the same as parent.valueForKey("foo") in java
The first line requires a parent with foo bound. The second line
requires a variable or method named foo.
The carat is not a shortcut for parent.
?foo = "123" appends a value to a wohyperlink.
Uli
Am 27.12.2007 um 08:20 schrieb Christopher Roach:
Hi Archibal,
The carat syntax you're seeing is just a shorthand for saying take the
value from the parent component.
As for the documentation, I agree with you that it is very hard for a
WO newbie to get up and running. I too just recently got started
working with WO (as my new job uses WebObjects for all of its
development) and I ran into lots of trouble trying to find some
introductory material that doesn't use the deprecated tools and that
also tries to use some of the new tech found in 5.4. To remedy this
I'm working on some introductory material myself, which I will be
posting to this mailing list as soon as I've finished. So, keep an
eye out and hopefully my tutorials will help you out a bit.
Christopher
On Dec 26, 2007 3:01 PM, Archibal Singleton <email@hidden>
wrote:
Hello,
I've searched through all the WO Apple docs (spotlight on Leopard
truly rocks!) to find a good explanation of the use of the caret "^"
character in bindings in custom WOComponent .wod files and couldn't
find any (except in a a couple of EO docs). It's mentioned in passing
in the "WOComponent HTML File Format" reference but not in the
"WOComponent Bundle Format" reference. In the HTML file format file
they also mention prefixing key binding with a ? in the .wod file but
I could not find a detailed explanation for this either.
The only place I could find documentation about the use of the "^"
was
in some of the WO books.
Did I really missed it or such a basic piece of information is
actually missing from the docs?
Anyway the docs are so incredibly lacking and misleading (they even
no
longer seem to include the simplest Hello World tutorial...) that if
it was not for the WO community, I really don't see how a new comer
could even start to grasp and further more embrace WO.
Such a shame :-(
So I thought I mention how grateful and thankful I'm to this great WO
community for all the work they putting in making WO useable.
Thank you guys.
= tmk =
_______________________________________________
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
--
Christopher Roach
email@hidden
_______________________________________________
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
_______________________________________________
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