Results 1 to 4 of 4

Thread: radio button binding pb

  1. #1
    Join Date
    Apr 2009
    Posts
    25

    Default radio button binding pb

    I'm using abeille forms and bindings from spring-richclient-suuport to make a form

    I have a form with three radiobuttons in a single radio group button
    ("BLUE","RED", GREEN") I have to choose one of them
    I want to use the binding from spring but if I do
    Code:
    getBindingFactory().bindControl(accessor.getRadioButton("RED"), "color");
    I get
    java.lang.IllegalArgumentException: No converter registered to convert from sourceClass 'class com.Colors' to target class 'class java.lang.Boolean
    color is referencing to the class Colors
    accessor.getRadioButton("RED") is refering to a JRadioButton
    Colors is
    Code:
    public enum Colors{
    RED,
    BLUE,
    GREEN
    }
    I know that if I'm using Boolean for each radio button, it will work but is there any solution more efficient ?
    Thanks for your help

  2. #2
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default

    Hi,

    Have you looked at org.springframework.richclient.samples.showcase.bi ndingRadioButtonEnumDialog class in the samples module?

    Seems exactly like what you are trying to do.

    Jonny

  3. #3
    Join Date
    Apr 2009
    Posts
    25

    Default

    Hi
    Which release do you mean ?
    Do you have the link to that jars containing the class, I cannot find it on google
    Thanks

  4. #4
    Join Date
    Aug 2004
    Location
    San Francisco
    Posts
    423

    Default

    I was referring to the source code in the current subversion head. Not sure how far back those examples go.

    Jonny

Posting Permissions

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