Mhh, now i'm not sure whether my problem is the same as kursy's...
For me its just not working.. no exception, but he does not write the values to the property and he does not reset the checkbox
i would like to bind a checkbox as easy as a textbox to an int property or an boolean property.
Here is some code from me where i use a combobox
Code:
<spring:bind path="register.customer.gender">
<select
<core:if test="${status.error}">
class="error"
</core:if>
name="<core:out value="${status.expression}"/>" size="1">
<option value="0"></option>
<core:forEach items="${gender}" var="gender">
<!-- Wenn vorauswahl, dann wird bei option als attribut selected=selected gemacht (Vorauswahl) -->
<option
<core:if test="${gender.posnumber == status.value}">selected="selected" </core:if>
value="<core:out value="${gender.posnumber}"/>"/>
<core:out value="${gender.matchcode}"></core:out>
</option>
</core:forEach>
</select>
</spring:bind>
gender is from a ownwritten type that contains matchcode (like male or female or in german männlich or weiblich) and the posumber is an unique id to identify the entry)
maybe that helps kursy