|
ludwigl
|
 |
« on: March 02, 2010, 01:37:22 AM » |
|
Hello,
there seems to be a bug in the resetValue method of the databinder (I am using R747 from SVN). Once resetValue is called without any paramater, access to the databinder does not work anymore.
Below you find a small example.
Just click the button ResetDatabinder and then the button GetDatabinderData and the error occurs.
With best regards,
Ludwig
Code exmaple:
iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.DataBinder) .host(host,"databinder2") .setName("databinder2") ); append((new linb.UI.Input) .host(host,"input7") .setDataBinder("databinder2") .setDataField("input7") .setLeft(90) .setTop(90) .setValue("hallo") ); append((new linb.UI.Button) .host(host,"button10") .setLeft(90) .setTop(60) .setCaption("ResetDatabinder") .onClick("_button10_onclick") ); append((new linb.UI.Button) .host(host,"button11") .setLeft(360) .setTop(60) .setCaption("GetDatabinderData") .onClick("_button11_onclick") ); append((new linb.UI.Input) .host(host,"input8") .setLeft(360) .setTop(90) ); return children; // ]]code created by jsLinb UI Builder }, _button10_onclick:function (profile, e, src, value) { var databinder = linb.DataBinder.getFromName("databinder2"); databinder.resetValue(); }, _button11_onclick:function (profile, e, src, value) { var databinder = linb.DataBinder.getFromName("databinder2"); var databinderData = databinder.getValue();
this.input8.setValue(databinderData.input7); }
|