Re: Not finding binding with "$^" notation
Re: Not finding binding with "$^" notation
- Subject: Re: Not finding binding with "$^" notation
- From: Sanford Selznick <email@hidden>
- Date: Fri, 9 Jan 2009 13:32:28 -0700
Title: Re: Not finding binding with "$^"
notation
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden