nhusher
Sep 7th, 2007, 12:05 PM
Hello all,
I'm going to preface this by saying that I am not well-versed in Spring. I understand a bunch of the concepts, I understand Java, I just haven't had time to dive into Spring. Instead, my specialization is in html/css/javascript as a frontend person.
My question--and perhaps complaint--is in regards to the way Spring handles checkboxes. I am writing the HTML frontend for a web application, and it appears that the only way to have a working checkbox in Spring is to have a checkbox tailed with a hidden field to compensate for Spring's insistence that bound inputs actually return data. As a designer who strives for semantic, simple, and maintainable markup, this irks me.
Is there any way around this? If not, why isn't Spring capable of absorbing incomplete inputs from checkboxes?
Links:
http://timchalk.wordpress.com/2007/07/18/getting-checkboxes-to-work-correctly-with-spring-form-validation/
http://www.springframework.org/docs/reference/mvc.html
etc...
I'm going to preface this by saying that I am not well-versed in Spring. I understand a bunch of the concepts, I understand Java, I just haven't had time to dive into Spring. Instead, my specialization is in html/css/javascript as a frontend person.
My question--and perhaps complaint--is in regards to the way Spring handles checkboxes. I am writing the HTML frontend for a web application, and it appears that the only way to have a working checkbox in Spring is to have a checkbox tailed with a hidden field to compensate for Spring's insistence that bound inputs actually return data. As a designer who strives for semantic, simple, and maintainable markup, this irks me.
Is there any way around this? If not, why isn't Spring capable of absorbing incomplete inputs from checkboxes?
Links:
http://timchalk.wordpress.com/2007/07/18/getting-checkboxes-to-work-correctly-with-spring-form-validation/
http://www.springframework.org/docs/reference/mvc.html
etc...