jquery - Call JavaScript function in AbstractJavaScriptExtension class -


i call javascript function in vaadin. abstractjavascriptextension. this.callfunction("removenode"); not fire javascript function. bug or doing wrong?

@override public void remove() {     super.remove();     fireremovenode();     this.callfunction("removenode"); } 

javascript code:

window.vaadin_components_graph_node = function() {         var self = this;         var state = this.getstate(); 

...

        this.removenode = function() {             console.log("call function", "remove node")             $(node).remove();         } }; 

you can't call javascript functions after abstractjavascriptextension removed. try placing javascript call method , don't call remove();


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -