From: "Ben Taylor" <[EMAIL PROTECTED]>

Can anyone let me know how to automatically check checkboxes?

Set the underlying form property and the framework will automatically render "checked" checkboxes.


I have:
<c:forEach items="${accountMap}" var="item" >
<html-el:multibox property="accounts" value="${item.key}"/>
<c:out value="${item.key}"/> <c:out value="${item.value.costCenterDesc}"/>
</c:forEach>


The form property "accounts" is a String[] containing account numbers. So this displays all of the accounts in accountMap, and 'checks' the boxes next to the ones that match the values in the "accounts" form property.

--
Wendy Smoak




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to