h:commandLink里面的h:dataTable没有被调用

时间:2015-05-25 16:30:45

标签: jsf-2 datatable commandlink

我在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;
    }
}

但它没有被调用。这是怎么造成的,我该如何解决?

0 个答案:

没有答案