I need your help in passing the proper method to the button actionListner. I am having a button in a datatable. The button code is below:
<h:commandButton id="submitButton" value="View" actionListener="#{bcd.showDatailDialog}" >
<f:setPropertyActionListener value="#{c}" target="#{bcd.selectedRequest}"/>
</h:commandButton>
Based on the value of the #{c.documentType}
which is displayed in the datatable, it will decide which method to be used in the actionListner.
The showDatailDialog
method code is:
public String showDatailDialog(String sdoc) {
private String methodName;
try {
if (sdoc.equalsIgnoreCase("CE")) {
mthodName="#{bcd.BCESS}";
}
else
{
mthodName="#{bcd.BSSES}";
}
} catch (Exception e) {
System.err.print(e);
e.printStackTrace();
}
return methodName;
}
Now when I click on the button, it showed me an error:
<ActionListenerImpl> <processAction> javax.el.MethodNotFoundException: //C:/../JDeveloper/../XXX.war/jsf/Search.jsf @91,89 action="#{bcd.showDetailDialog}": Method not found: rfc.Bean3@355f70.showDetailDialog()