+ Start a Discussion
Suresh RaghuramSuresh Raghuram 

pass the html input checkbox values to the controller from Vf Page

<apex: repeat value="{!WrapperList}" var="rec">
<input type="checkbox" id="chkbx"/>
</apex:repeat>
instead of the following code
<apex: repeat value="{!WrapperList}" var="rec">
<apex:inputCheckbox value={!rec.selected}" id="select"/>
</apex:repeat>
Here my question is how can I pass the checkbox values to the wrapper class list.
Hargobind_SinghHargobind_Singh

Hi Suree,

Can you elaborate a bit, on what do you mean by "instead of this code", do you mean you are using the code with inputCheckBox and it is not passing values to the controller ? To be able to help you, It would be good if you can state your requirement, and let us know what exactly is not working. 

 

Suresh RaghuramSuresh Raghuram
we are using some jquery on a table and I have a requirement where to place the checkbox in the table header, Here is the issue it is not displaying if I use the visualforce checkbox tag , so I used the html input tag to dispaly.
To do mass update I added this checkbox to a wrapper class list type. 
There after using this html input I am into hard time to access this back in the controller class.
Suresh RaghuramSuresh Raghuram
I solved this.

with out using the html input, I made my apex table to accept the apex checkbox wrapping it with a output panel whose layout-"none"