function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
heiriticheiritic 

How to get checkbox value in apex:datatable ?

Hi all,

I have a question regarding visualforce. I have a page which shows the contact lists. I use apex:datatable to show those and add checkbox in every row. What I want to do is send email to every contact that is checked. I don't have a clue on how to do this.
Or is there any apex control besides apex:datatable that already show checkbox ? Any suggestions would be great.

thanx,
edwin
BoolsEyeBoolsEye

You need a wrapper class for the contacts.

Here is an example how to do this.