User can select or deselect a record from a list of records in a table for update by checking and unchecking of a checkbox.
I am trying to maintain this check box value in a wrapper to identify weather it is checked or not, but due to some reason my code is not displaying the check box if I add it using the apex syntax so I am using an input tag like this:
<apex: repeat value="{!WrapperList}" var="rec">
<input type="checkbox" id="chkbx"/>
</apex:repeat>
instead of using 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.