Okay, I'm sure I'm being a total idiot here, which is fine since that would mean the answer is out there! I'm using Spring RCP to build a form dynamically based on a set of named properties from an external XML file. That all works fine. Now I want to perform an action anytime a value in one of the form fields has changed. I've tried to call:
and:Code:getFormModel().addPropertyChangeListener(propertyName, listener);
after I've associated the named property with a property editor either via:Code:getFormModel().addFormPropertyChangeListener(propertyName, listener);
or:Code:getFormModel().registerCustomEditor(propertyName, propertyEditor);
The former doesn't seem to do anything at all and the latter bombs with an IllegalArgumentException saying the named property has not been added to the form or any of its parents.Code:getDefaultComponent(propertyName);
Again, all I really want to do is get called back when the value referenced by propertyName is updated by Spring RCP because of a change in the form fields.
Help!
Thanks in advance,
Scott


Reply With Quote
.
