Announcement Announcement Module
Collapse
No announcement yet.
radio button binding pb Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Comment


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

        Jonny

        Comment

        Working...
        X