javafx 2 - passing custom java objects to webEngine executeScript -
i have person class
person p = new person(); ....... .....
following not working
webengine.executescript("add(" + p + ")");
and in html
function add(obj) { document.getelementbyid("helloprompt").innerhtml= obj.name; // error }
ok got first had jsobject , call function
jsobject jsobj = (jsobject)webengine.executescript("window"); jsobj.call("add", p);
Comments
Post a Comment