How can I pass selected row to commandLink inside dataTable or ui:repeat?

前端 未结 4 1826
情话喂你
情话喂你 2020-11-21 06:29

I\'m using Primefaces in a JSF 2 application. I have a , and instead of selecting rows, I want the user to be able to directly execute variou

4条回答
  •  春和景丽
    2020-11-21 07:09

    In JSF 1.2 this was done by (within the command component). In JSF 2.0 (EL 2.2 to be precise, thanks to BalusC) it's possible to do it like this: action="${filterList.insert(f.id)}

提交回复
热议问题