Results 1 to 10 of 11

Thread: RCP bindings vs. JGoodies bindings

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Dallas, Texas
    Posts
    2

    Default 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?

    john

  2. #2
    Join Date
    Dec 2004
    Location
    Rotterdam, The Netherlands
    Posts
    162

    Default

    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.
    Kees de Kooter
    www.boplicity.net

  3. #3
    Join Date
    Feb 2006
    Posts
    4

    Default

    How mature is the spring databinding framework?

  4. #4
    Join Date
    Dec 2004
    Location
    Rotterdam, The Netherlands
    Posts
    162

    Default

    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.
    Kees de Kooter
    www.boplicity.net

  5. #5
    Join Date
    Nov 2005
    Location
    Chicago
    Posts
    122

    Default

    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.

    Jess

  6. #6
    Join Date
    Dec 2004
    Location
    Rotterdam, The Netherlands
    Posts
    162

    Default

    I think you could if you use AOP. I would not be surprised if spring binding uses this.
    Kees de Kooter
    www.boplicity.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •