RE: Checkbox not checked
> From: Curtis Taylor [mailto:[EMAIL PROTECTED] > I'm not exactly sure, but I'm a tad suspect of your 'c:if > test' expression. It looks suspiciously like a Python "boolean" > test for the object's presence. AFAIK, in JSTL one needs to be > more explicit as to what value (or lack thereof) > when testing... > Unless, of course, it's just a typo in your email...;-) No, that part is working fine. 'item.value.activity' is a Map of Booleans, and I'm checking whether there's any activity for that calendar year. The problem is that this: does not render as "checked" when the matching value _is_ present in the String[] property called 'accounts' in the form bean. :( I think it has to do with manually supplying the 'value', because it works if you do this: I could just hit delete now, but instead I'll archive my mistake: I used checkbox with a String[] property. The second snippet has the correct tag: multibox. Which is why that one works. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Checkbox not checked
Hi Wendy, I'm not exactly sure, but I'm a tad suspect of your 'c:if test' expression. It looks suspiciously like a Python "boolean" test for the object's presence. AFAIK, in JSTL one needs to be more explicit as to what value (or lack thereof) when testing... Unless, of course, it's just a typo in your email...;-) Curtis -- c dot tee at verizon dot net Wendy Smoak wrote: (No, this isn't the infamous "how do I uncheck my checkbox" question!) I have this: test="${item.value.activity[accountForm.map.calendarYear]}"> Unfortunately, the checkboxes corresponding to the String[] 'accounts' property of the form are not being rendered as checked. Before I go back to the Action and create a separate Map to hold only the "active" accounts based on the selected year, does anyone think this ought to work the way it is? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Checkbox not checked
(No, this isn't the infamous "how do I uncheck my checkbox" question!) I have this: Unfortunately, the checkboxes corresponding to the String[] 'accounts' property of the form are not being rendered as checked. Before I go back to the Action and create a separate Map to hold only the "active" accounts based on the selected year, does anyone think this ought to work the way it is? -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]