Binding to dynamic checkbox in an array doesn't work.
Kannan Jayaprakasam <[email protected]> Fri, 27 Aug 2010 08:07:45 -0700
| Newsgroups | gmane.comp.java.springframework.user |
|---|---|
| Message-ID | <[email protected]> |
Inside nested forEach loops I'm dynamically creating textbox and checkboxes as below. Value set in the textbox is getting passed to the controller, when the form is submitted, but the checkbox value is always passed as false, even when checked. I even looked at the request parameter available to the Controller, it is false as well.
<spring:bind path="refreshCache.instanceDetails[${instanceLoopStatus.index}].modulesRunning[${moduleLoopStatus.index}].serviceUrl">
<input type="text" name="${status.expression}" value="${status.value}"/>
</spring:bind>
<spring:bind path="refreshCache.instanceDetails[${instanceLoopStatus.index}].modulesRunning[${moduleLoopStatus.index}].checked">
<input type="checkbox" name="${status.expression}" value="${status.value}"/>
</spring:bind>
Why is this happening? I'm clueless. Please help.
--Kannan
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Springframework-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/springframework-user