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
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"