File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to get particular column data in an ArrayList or in Collection from <p:dataTable>