現在,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。 –