problem with add value in dukescript

18 views
Skip to first unread message

lauwaif...@gmail.com

unread,
May 24, 2016, 3:27:03 AM5/24/16
to DukeScript
inside index.html

<button data-bind='click: addfilename.bind($data, "temp")'>testing</button>

inside DataModel.java

@Function public static void addfilename(Data model, String temp) {   
       model.setMessage(temp);
}

it show null value in message after pressing the 'testing' button


I use netbeans IDE to write this code....

help please

lauwaif...@gmail.com

unread,
May 26, 2016, 2:13:25 AM5/26/16
to DukeScript, lauwaif...@gmail.com
@Model(className = "Data", targetId = "", properties = {
    @Property(name = "message", type = String.class),
    @Property(name = "rotating", type = boolean.class),
    @Property(name = "myMessage", type = String.class)
})

lauwaif...@gmail.com於 2016年5月24日星期二 UTC+8下午3時27分03秒寫道:
Reply all
Reply to author
Forward
0 new messages