*
The moose likes JSF and the fly likes Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>" Watch "Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>" New topic
Author

Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>

Basit Mahmood
Greenhorn

Joined: Oct 10, 2011
Posts: 2
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.

Thanks.
 
 
subject: Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>
 
Similar Threads
Get the selected row in datatable [PRIMEFACES]
Display background color
Repeating JSF code
problem JSF - datatable from DB
Highlighting a row when it's selected