Griffon checkbox binding won't work -
i trying following griffon code
on model:
@bindable boolean hello1=false
on view:
checkbox(id:1,text: 'hello1', constraints:'wrap',selected:bind(target: model, targetproperty:'hello1'))
but
error org.codehaus.griffon.runtime.builder.uberbuilder - error occurred while building test.testview@1132e76 groovy.lang.missingmethodexception: no signature of method: java.lang.object.setvariable() applicable argument types: (java.util.collections$emptymap, java.util.arrays$arraylist) values: [[:], [1, javax.swing.jcheckbox[,0,0,0x0,invalid,alignmentx=0.0,alignmenty=0.5,border=javax.swing.plaf.synth.synthborder@b101cf,flags=288,maximumsize=,minimumsize=,preferredsize=,defaulticon=,disabledicon=,disabledselectedicon=,margin=javax.swing.plaf.insetsuiresource[top=0,left=0,bottom=0,right=0],paintborder=false,paintfocus=true,pressedicon=,rolloverenabled=true,rollovericon=,rolloverselectedicon=,selectedicon=,text=]]]8-mar-2012 12.03.41 groovy.util.factorybuildersupport createnode avvertenza: not find match name 'setvariable'
i dont what's deal, copied working examples on internet....
use string instead of number value of id: property, this
checkbox(id: 'c1', ...)
Comments
Post a Comment