Re: Noticing changes to a WOTextField
Re: Noticing changes to a WOTextField
- Subject: Re: Noticing changes to a WOTextField
- From: Kieran Kelleher <email@hidden>
- Date: Tue, 24 Apr 2007 17:36:39 -0400
This returns a dictionary where the keys are the changed values and
the values are the new values, so you could check for presence of
certain keys. This is straight from Projecter WOnder's ERXGenericRecord.
/* (non-Javadoc)
* @see
er.extensions.ERXEnterpriseObject#changesFromCommittedSnapshot()
*/
public NSDictionary changesFromCommittedSnapshot() {
return changesFromSnapshot(editingContext
().committedSnapshotForObject(this));
}
On Apr 24, 2007, at 3:45 PM, Serethos wrote:
I have a component embedded within another component (it is
included in the wod-descriton file)
which gets displayed as a webpage.
The embedded one represents a Form with a set of WOTextFields. When
the submit-button is
activated, the outer component needs to know if something in the
textfields has changed, so
that it can trigger an cost expensive event or avoid it if nothing
changed.
What is the smartest way to check for that condition?
_______________________________________________
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