I am trying to call a JavaScript function from icefaces check box component like this:
<ice:selectBooleanCheckbox value="#{reportBean.selected}" onclick="toggleSelectAllRows()" />
Then JavaScript code is :
<script>
function toggleSelectAllRows() {
alert("Entered selectAll");
}
}
</script>
But after checking the check box, the alert box is not getting displayed. What can be the reason?
If this is really your JavaScript code, there is a
}too much at the end, thus preventing your JavaScript from being parsed (and executed).