When user clicks the Testscript button, the method testscript should be called. But it calls a different method in my bean. Following is the sample code.
<h:form id="myform">
<h:commandButton id="testScript" actionListener="# {ScriptedPolicyBean.testScript"} />
<feat:Button onclick="document.getElementById("myForm:testScript")" />
</h:form>
Please help
See Question&Answers more detail:os