Re: Not finding binding with $^ notation

2009-01-09 Thread Sanford Selznick
At 10:35 PM -0700 1/1/09, Sanford Selznick wrote: I made it to tutorial 2. The binding described below is not found. Both PageWrapper and Main are in the same package. Whoops! I accidentally subclassed com.webobjects.appserver.WOComponent instead of er.extensions.ERXStatelessComponent. I

Re: Not finding binding with $^ notation

2009-01-09 Thread Hugi Thordarson
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

Re: Not finding binding with $^ notation

2009-01-09 Thread Sanford Selznick
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

Re: Not finding binding with $^ notation

2009-01-09 Thread Hugi Thordarson
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() {

Re: Not finding binding with $^ notation

2009-01-06 Thread Lachlan Deck
On 02/01/2009, at 4:35 PM, Sanford Selznick wrote: I made it to tutorial 2. Yay :-) The binding described below is not found. Both PageWrapper and Main are in the same package. - PageWrapper.html: titlewo:str value=$^title //title - PageWrapper.api (edited by eclipse/wolips):

Re: Not finding binding with $^ notation

2009-01-06 Thread Lachlan Deck
On 07/01/2009, at 3:06 AM, Sanford Selznick wrote: At 10:57 PM +1100 1/6/09, Lachlan Deck wrote: When I run my app I'm getting this error: takeValueForKey()]: attempt to assign value to unknown key: 'title'. This WOComponent does not have an instance variable of the name title or _title,

Not finding binding with $^ notation

2009-01-05 Thread Sanford Selznick
I made it to tutorial 2. The binding described below is not found. Both PageWrapper and Main are in the same package. - PageWrapper.html: titlewo:str value=$^title //title - PageWrapper.api (edited by eclipse/wolips): ?xml version=1.0 encoding=UTF-8? wodefinitions wo