Well - if you look at ERXStatelessComponent, it inherits from ERXNonSynchronizingComponent, and guess what you'll find in the code for that little bugger....

        /** component does not synchronize variables */
        public boolean synchronizesVariablesWithBindings() {
                return false;
        }

;-)


On 9.1.2009, at 20:32, Sanford Selznick wrote:

You're the second person to say that.  :-)

I do not have synchronizesVariablesWithBindings in my project. Nor am I binding to a member variable. The binding is working perfectly with the "^" notation.

(Nor is what you're saying done in the tutorial, part 2.)

So why's it working?  What's special about ERXStatelessComponent?

(I'm just trying to figure out how all this stuff fits together.)

Thanks,
  Sanford

At 8:26 PM +0000 1/9/09, Hugi Thordarson wrote:
No, for caret notation to work, you just need to override synchronizesVariablesWithBindings() in your component subclass to return false. Otherwise WO will attempt to assign the value of the binding to the component instance itself.

@Override
public boolean synchronizesVariablesWithBindings() {
        return false;
}


- hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/
_______________________________________________
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/hugi%40karlmenn.is

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]

Reply via email to