Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>
posted 5 years ago
Hi to all,
Hope you all will be fine. I am new to JSF. I have a <p:table> like this.
when table is first loaded it contains entries from Database. Now i want when someone try to add CategoryName to the table , then the Table must not contain the added category. Means there must be no duplicate in the table.
So i want to ask is it possible that when some one try to add category to the table then instead of checking from database table first i get the records of columns CategaryName from the p:dataTable using TableModel?
Like i get all the names under CategaryNames column in an ArrayList and then check the new entered Category against all the entries, and if match exist then i return message that entry already exist in the table.
Actually i just want to ask is it possible to get records of particular columns from p:databale in an ArrayList or Collection using TableModel.