Jan 20th, 2006, 12:10 PM
RCP bindings vs. JGoodies bindings
We're looking into using a binding framework. Looking at RCP and JGoodies, they're obviously very similar. From skimming the code and forums, it looks like the primary differences are RCP enhances for Spring, adds a declarative binding selection mechanism, and adds nested bindings (bean.internalBean.bar). Is this correct? Any other important differences?
Also, in the JGoodies example the domain objects extend a JGoodies Model class to add Java bean bound properties for update notifications. Is this the recommended method in RCP as well?
Jan 29th, 2006, 02:00 AM
In RCP you don't need to subclass your pojos, you can bind them as is. That's a big plus for RCP I think.
Last edited by Kees de Kooter; Jan 29th, 2006 at 02:56 AM.
Feb 7th, 2006, 04:47 PM
How mature is the spring databinding framework?
Feb 8th, 2006, 12:38 AM
I think the core is pretty mature. It works fine with a coding-only of swing development.
In my project we use JFormBuilder to build the windows and add some binding code later on. This was quite easy to do too for the basic controls. For comboboxes I had to make a subclass of SwingBindingFactory. But that was not difficult to do.
Feb 8th, 2006, 01:13 AM
You don't need to subclass Model for the JGoodies binding library. However, if your bean properties are not bound, any changes that happen directly to the domain object won't be updated in the view. I don't know how Spring RCP/Binding does it, but unless they have a polling thread, they can't get updates from non-bound properties either.
Feb 8th, 2006, 04:55 AM
I think you could if you use AOP. I would not be surprised if spring binding uses this.