Re: multiple checkboxes

2004-08-18 Thread Jignesh Kapadia
HI , Thanks for your reply. But How do I implement this in my current scenario. displaying records on the screen using a list from session and not using form variables. if I use 'indexed="true"' on html:chekbox how do I capture the change? i.e. HTML generated will look like as below.

Re: multiple checkboxes

2004-08-18 Thread Bill Siggelkow
You don't want to use multibox ... you need to set 'indexed="true"' on the html:checkbox control in the logic:iterate or c:forEach loop that displays your list. Jignesh Kapadia wrote: Hi , Thanks for your reply. Let me clarify liitle bit more. Screen One I am displaying a list of records

Re: multiple checkboxes

2004-08-18 Thread Jignesh Kapadia
Hi , Thanks for your reply. Let me clarify liitle bit more. Screen One I am displaying a list of records from a list(which is List of an object). There is a boolean property in the object depending on which the check box should be checked or unchecked. Once the list is displayed. I shou

Re: multiple checkboxes

2004-08-18 Thread Susan Bradeen
Jignesh Kapadia <[EMAIL PROTECTED]> wrote on 08/17/2004 10:14:20 PM: > John, > Thanks for your reply. This is a standard way of using > multiple check boxes(i.e.html:multibox). If you read my earlier e- > mail the requirement is little bit different.Just explaining in > brief again. say

Re: multiple checkboxes

2004-08-17 Thread jthompson
>say for example I have a list with 10 objects. I am displaying a list on a page with a check box. the object has a boolean property. depending on the value of the property the check box should be checked or unchecked initially.( In case of Multibox all of them are unchecke

Re: multiple checkboxes

2004-08-17 Thread Jignesh Kapadia
John, Thanks for your reply. This is a standard way of using multiple check boxes(i.e.html:multibox). If you read my earlier e-mail the requirement is little bit different.Just explaining in brief again. say for example I have a list with 10 objects. I am displaying a list on a page with

Re: multiple checkboxes

2004-08-17 Thread jthompson
To use a multibox, you need a getter and setter method in your form-bean that returns/sets a String array. Each element in this String array corresponds to the value of a checked check-box. Let's say you have a multibox coded like this: ie 1) myFormBean has a method 'getDataBaseR