In JSF, we can bind HtmlDataTable to backing bean and get the row data. But ui:repeat doesn’t even have a binding attribute. So, how do I know which row (element) is clicked in ui:repeat?
In JSF, we can bind HtmlDataTable to backing bean and get the row data.
Share
Either use
f:setPropertyActionListenerwith
Or just put action method in iterated item
Either case, you need to ensure that the same
itemsis preserved in subsequent request.Both ways by the way also just works in a
h:dataTable.