hello
It's a quite typical web trier problem, but I've choosen this forum, because it touches more common things, e.g. binding.
I'm trying to build multipage, session form with list of items, where each of item can be edit by user. I need to receive an information about changed rows only, so first thought was to use PropertyChangeListeners.
I've found in docs following sentence:
Great! but...Also, the BeanWrapper offers support for nested properties, enabling the setting of properties on sub-properties to an unlimited depth. Then, the BeanWrapper support the ability to add standard JavaBeans PropertyChangeListeners and VetoableChangeListeners, without the need for supporting code in the target class
acctually, BeanWrapperImpl has no support in this area. It is trivial to implement by changing existing code, but not by overriding this class - some method are private (like getNestedBeanWrapper), a lot of other objects create BeanWrapperImpl directly (e.g BindException). It seems that I have to do many changes in packages .validation and .beans to provide this simply functionality.
Is there any other way ? Maybe propertychangelistener support will be added in new releases ?


Reply With Quote
