现在,customerCaseController.customerCase.caseId是一串数字,并且正在工作,如果我只是将它作为标题或标签打印在xhtml页面上。如何通过JSF参数的值作为方法参数?
我想调用的方法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。我怎么能通过这个价值?
谢谢!这样可行。我想我只是不习惯于xhtml的一面。提出ui:param +1。 –