我在commandLink
内有一个dataTable
,如下所示:
<h:column>
<h:commandLink action="#{pc_jlReport.JoinerleaveReportViewButton}">
<img src="<%=request.getContextPath()%>/theme/default/images/view.png" alt="" title="" border="0" />
<f:param name="JLReportId" value="#{JLReport.idJoinerLeaver}"></f:param>
</h:commandLink>
</h:column>
它应该调用这个方法:
public String JoinerleaveReportViewButton() {
try {
jlr = JoinerLeaverReportManager.getInstance().JoinerleaveReportViewButton(new Long(getRequestParam("JLReportId").toString()));
return Constants.AVIEW;
} catch (Exception e) {
e.printStackTrace();
return Constants.FAILURE;
}
}
但它没有被调用。这是怎么造成的,我该如何解决?