Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check box issue

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I want to show a report of following format

srNo select(chk box) Created by Preview


In select column I have to show the checkbox and there is delete button. On click of del button selected record should get deleted so which tag to use for this operation.

how can I get list of selected check box values.....

thanks
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Map it to a boolean property of the model object or a Map<SomeId, Boolean> poperty of the backing bean.
You can find here examples of both: http://balusc.blogspot.com/2006/06/using-datatables.html#SelectMultipleRows
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic