Re: something is changing a value behind my back
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