|
From: Benoit X. <bx...@ob...> - 2008-09-03 17:07:01
|
Hi *, I've posted this question on the forum but no luck so far http://forum.springframework.org/showthread.php?t=59583 I have a simple ValidatingFormModel and I can detect when the 'dirty' property changes but is there any way to detect which property in my model caused the change (say whether it was the 'name' or the 'telephone'). Code: model.addPropertyChangeListener(FormModel.DIRTY_PROPERTY, new PropertyChangeListener() { public void propertyChange(final PropertyChangeEvent evt) { ..... } } Alternatively, is there a way to find out the list of property names that have changed on my model? I think it would be very useful... Suggestions most welcome, Many thanks, Benoit. ------------------------------ IMPORTANT NOTICE This communication contains information that is considered confidential and may also be privileged . It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender and delete the original. |