Fantastic!I'm currently exiineercpng the ClassCastException issue you mentioned, but I'm using a different approach. To take your example, I want a drop-down list of all Departments, plus an additional item in the list, All Departments , that should set my entity's department property to null. Do you have an idea how to do this? I've registered a custom PropertyEditor for the bean's property path and requiredType, but I still receive the error. Here's what I'm doing so far (the allDepartments var is a list of Department beans):<form:select path= department ><option value= "><All Departments></option><c:forEach items= ${allDepartments} var= d ><form:option value= ${ }${d.id} >${d.shortDescription}</form:option></c:forEach></form:select>
GnmQvDJWNfoZRobert June 14, 2012 at 12:49 PM
Fantastic!I'm currently exiineercpng the ClassCastException issue you mentioned, but I'm using a different approach. To take your example, I want a drop-down list of all Departments, plus an additional item in the list, All Departments , that should set my entity's department property to null. Do you have an idea how to do this? I've registered a custom PropertyEditor for the bean's property path and requiredType, but I still receive the error. Here's what I'm doing so far (the allDepartments var is a list of Department beans):<form:select path= department ><option value= "><All Departments></option><c:forEach items= ${allDepartments} var= d ><form:option value= ${ }${d.id} >${d.shortDescription}</form:option></c:forEach></form:select>
Post your Comment