Sigma Php Ajax framework, Ajax Components, GUI Builder
July 30, 2010, 09:32:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bug in databinder.resetValue (R747)  (Read 1019 times)
ludwigl
Full Member
***
Posts: 20


View Profile
« 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);
        }
Logged
linb
Moderator
Hero Member
*****
Posts: 225


View Profile
« Reply #1 on: March 03, 2010, 04:58:20 PM »

Thanks for your bug reporting.

Fixed, update from svn please!
Logged
becky noel
Newbie
*
Posts: 2


View Profile WWW
« Reply #2 on: June 12, 2010, 08:03:10 AM »

thanks for information
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!