I have a javascript
in my html
page.What I need to do is I have a var in javascript
and I need to pass that var as the parameter for a back bean method.I do not have any jsf commandButtons
.I need to call this back bean parameterized method inside my javascript
by passing var as the parameter
Ex: I want to pass value as the parameter to the parameterizedMethod().Now I am using it like bellow.But it does not work.("knowlade_content" is the id of a <p></p>
tag)
<script>
var value = 25;
document.getElementById("knowlade_content").innerHTML = "#{myBean.parameterizedMethod(value)}";
</script>
<div>
<p id="knowlade_content"></p>
</div>