This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Basit Mahmood
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!