• 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: something is changing a value behind my back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: something is changing a value behind my back


  • Subject: Re: something is changing a value behind my back
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 6 Jul 2007 07:41:03 -0400

syncBindings only applies to the bindings INTO the component as defined in a WOD file that uses it.  If you notice in the stack trace:

    at com.webobjects.appserver.WOComponent.pushValuesToParent(WOComponent.java:547)


so this is actually bindings pushing back UP from a child component inside.  What's happening is that in the WOD file for this component, you are binding "status" into another component, and that component is pushing values back up, which in turn is calling setStatus again.  This, however, happens a million times a request and is pretty fast.  If setStatus is expensive in your component, then you can do something like:

private int _status;
public void setStatus(int status) {
if (status != _status) {
// do stuff
}
}

ms
 _______________________________________________
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: something is changing a value behind my back
      • From: WO Dev <email@hidden>
References: 
 >something is changing a value behind my back (From: WO Dev <email@hidden>)
 >Re: something is changing a value behind my back (From: Peter Vandoros <email@hidden>)
 >Re: something is changing a value behind my back (From: WO Dev <email@hidden>)

  • Prev by Date: Re: WOBuilder Replacement
  • Next by Date: Re: WOBuilder Replacement
  • Previous by thread: Re: something is changing a value behind my back
  • Next by thread: Re: something is changing a value behind my back
  • Index(es):
    • Date
    • Thread