• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Semantics of ^ in value bindings in .wod file.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Semantics of ^ in value bindings in .wod file.


  • Subject: Re: Semantics of ^ in value bindings in .wod file.
  • From: Archibal Singleton <email@hidden>
  • Date: Wed, 2 Jan 2008 16:50:42 -0300

Hi Chuck,

On 02 Jan 2008, at 16:44, Chuck Hill wrote:

[snip]

One thing I'm not sure about is wether it's possible to use the ^ syntax for non-synchronizing component.

From the rest of your message it seems you meant "wether it's possible to use the ^ syntax for synchronizing component". The answer is no. More below.

Yes, sorry, you got it right %-)

[snip]

Now if I override synchronizesVariablesWithBindings() in UserName.java to return false, everything works.
But I see lots of examples (e.g. WOTable and WOCheckboxMatrix) where subcomponent using the ^ don't override synchronizesVariablesWithBindings() to return false. And I assume that they work (I haven't tested them).


What am I missing here?

public boolean isStateless() { return true; }

"By default, stateless components don't synchronize. So, if you override this method to return true and you want the component to synchronize, you must also override synchronizesVariablesWithBindings and return true."

Thanks a lot Chuck, this explains it.

The API docs for WOComponent.synchronizesVariablesWithBindings() says: "This method returns false for stateless components (unless you override isStateless and return true), and true otherwise."

Which, to this non-native english speaker, seems contradictory!

Shouldn't it read "... (unless you override *synchronizesVariablesWithBindings* and return true)?!?

If this is confirmed, I can file a documentation bug @ radar.

= 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


  • Follow-Ups:
    • Re: Semantics of ^ in value bindings in .wod file.
      • From: Chuck Hill <email@hidden>
References: 
 >Re: Semantics of ^ in value bindings in .wod file. (From: Archibal Singleton <email@hidden>)
 >Re: Semantics of ^ in value bindings in .wod file. (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: SharedEditingContext error in WO 5.4
  • Next by Date: Re: Semantics of ^ in value bindings in .wod file.
  • Previous by thread: Re: Semantics of ^ in value bindings in .wod file.
  • Next by thread: Re: Semantics of ^ in value bindings in .wod file.
  • Index(es):
    • Date
    • Thread