Announcement Announcement Module
Collapse
No announcement yet.
Binding checkbox Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Binding checkbox

    Hi,

    Below my jsp code: How do I bind the checkbox to my formbacking object using the bind tag?

    Code:
    <spring:bind path="linkedAccounts.lsaList">             
        	<c:forEach items="${linkedAccounts.lsaList.dataItems}" var="linkedAccount" varStatus="loop">
    			
    		        <tr class="<c:out value='${linkedAccount.rowClass}' /> ">
                      
    					<td width="10">
     					  <input type="checkbox" name="displayChecked" value="true" 
     					         onClick="javascript:document.getElementById('checked').value=this.checked;" />
    
    					  <input type="text" id="checked" name="checked" value"<c:out value="${linkedAccount.dataItem.checked}" />" />								     	       
           				</td>
    
                        <td width="150">                 
                          <c:out value="${linkedAccount.dataItem.friendlyName}" />
                        </td>
                      </tr>
    
                    </c:forEach>                              
    </spring:bind>
Working...
X