I am trying to pass parameters to my backing bean using action (testPlan and rowIndex). But when I run the code it says it can't find the method.
<p:commandLink update=":scriptGroupPopupID" ajax="true"
action="#{workloadScripts.initCurrentGroup(testPlan, rowIndex)}"
immediate="true"
oncomplete="PF('scriptGroupPopup').show();">
<f:param name="insertIndex" value="#{rowIndex}" />
</p:commandLink>
public void initCurrentGroup(String testPlan, String rowIndex) {
...
}
However, if I remove the parameters from initCurrentGroup
method only, it does work. What is going on here?