Thanks oliverhutchison for link! Very convenient solution :)
I did not know this feature till now. I see it has appeared since 1.1-rc1 version.
Type: Posts; User: lis; Keyword(s):
Thanks oliverhutchison for link! Very convenient solution :)
I did not know this feature till now. I see it has appeared since 1.1-rc1 version.
Yes, spring has a default boolean property editor that correctly convert "true" or "false" strings to boolean type on form submit.
But, it is work only in case, when your boolean field has "false"...
by the way, when form field is Boolean type I do form handling by the following way:
some.jsp
<spring:bind path="myForm.booleanFieldName">
<input type="checkbox" name="<c:out...
it seems I found where is a problem
my Map field has Integer keys
Spring binding work correct only in case of String keys :(
thanx Sebastian
but in my first post I did write about some interesting detail: JSTL expression
<c:out value="${myForm.myObject.mapField[key].stringField}"/> located before <spring:bind> tag on...
sorry, I have mistake about assumption of problem reason
net.sf.hibernate.collection.Map implements java.util.Map and piece of code "value instanceof Map" can not be reason for exception as I...
My form backing object has a Map field.
When I create new backing object by "new" operator, form is rendered correct:
form.jsp
--- cut ---
<spring:bind...