How to make checkbox checked

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

How to make checkbox checked

Raaja G
This post was updated on .

I am having display table like below.

<display:table id="data" name="deptUsers" requestURI="/"
 pagesize="10" cellpadding="2" cellspacing="2"  decorator="com.krishct.efiler.user.documents.DownloadDecorator">
        <display:column property="branch" title="Branch" sortable="true" style="text-align:center;" />
        <display:column property="loginId" title="User Name"sortable="true" style="text-align:center;" />
        <display:column title="View" style="text-align:center;">
                            <html:multibox name="deptUsers" property="view" /> 
        <display:column title="Review" style="text-align:center;">
                       <html:multibox name="deptUsers" property="review" /> 

I want the checkboxes get selected if the value from the database is on and others unchecked and if I select some other check boxes in different pages of the table and submit them they should be stored in database.

How to achieve this please guide me.