Hello guys, it's my first time posting here. I've been learning about primefaces recently, and I'm having a problem trying to add selected rows from a table to another table.
So the goal here is:
Having a table;
Select one or more rows in that table;
Add the selected rows to a new table;
Show the new table.
At the moment I have this table:
<p:dataTable id="searchresult"
value="#{searchBean.searchResult}" var="result"
selection="#{searchBean.selectedResults}" rowKey="#{searchBean.getResult(result, searchResult.id)}">
(columns are insignificant)
I can select the rows, but I feel the new array (selectedResults) isn't getting anything. I even ran in debug and that array wasnt getting any values.
TL;DR
Need help with selecting items from an existing table and add them to another table
Hope someone can help me!
Add selected rows to another table
-
- Information
-
Who is online
Users browsing this forum: No registered users and 46 guests