Hi
I used java and jsf.
I created dynamic datatable in java file.
can i call java method from setOnchange() event?
I am able to call java script function from setOnchange() event.
see the below code which is working fine for java script.
HtmlSelectOneMenu selectOneMenu = new HtmlSelectOneMenu();
selectOneMenu.setStyleClass("dropdownStyleTwo");
selectOneMenu.setOnchange("openWin(this);IGNORE_UN LOAD=false");
i wrote openwin() function in java script.
but i am not able to call java method change().
code which is not working.
HtmlSelectOneMenu selectOneMenu = new HtmlSelectOneMenu();
selectOneMenu.setStyleClass("dropdownStyleTwo");
selectOneMenu.setOnchange("myclass.change();IGNORE _UNLOAD=false");
myclass is the bean of class Test.
If user select any value from dropdown i want to call change java method.
This function will apply the same selected dropdown value to the other record also.