现在,customerCaseController.customerCase.caseId 是一串数字,如果我只是将它作为标题或标签打印在 xhtml 页面上,它就可以工作。
我想findByCustomerCase(String caseId)
在我的方法中调用该方法,fileAttachmentController
但这不起作用:
<f:param customerCase="#{customerCaseController.customerCase.caseId}" />
<p:dataTable var="fileAttachment"
value="#{fileAttachmentController.findByCustomerCase(customerCase)}">
...table-contents...
</p:dataTable>
这只会将文本“customerCase”作为参数传递给方法 findByCustomerCase,而不是参数 customerCase 的值。我怎样才能传递价值?