Hi Marty:

One way that I have implemented is that your class should return like
this.  I have a column called "checkbox" which return  string which
indicate check box and has name parameter like checkbox0, checkbox1
etc... I vary index eachtime this function is called

        public String getCheckbox()
        {               
                
                String x = "<input type='checkbox'
name='checkbox'"+"index+"' >";
                index++;
                return x;
        }

But Check boxes are nasty. If they are not checked then nothing gets
return so you have to cycle through all the parameters and determine
which ones are checked and which ones are not checked. 

Good luck

Shrihas Shah
NYS Office for Technology
[EMAIL PROTECTED]
Phone (518) 408-2382
Fax (518) 473-3389
(US Postal Service Regular Mail Address)
State Capitol ESP, PO Box 2062
Albany, NY 12220-0062
(Parcel Post/Overnight and Interagency Mail Address)
Empire State Plaza
Swan St., Core 4, 1st Floor
Albany, NY 12223

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin
Wegner
Sent: Wednesday, May 12, 2004 12:31 PM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] Displaytag and a Form

First, Displaytag is great!  You guys have saved me a lot of time and
effort.

Second, I am going to start a feature where I need to integrate a
Displaytag table with a form.  One of the columns in the table is going
to
host a <input type="checkbox"> element, one checkbox per row.  I need to
name each checkbox uniquely so that the server knows which row was
checked.

Before I start, is there nny advice or best practice on how to do this
with Displaytag?  Is it just straight forward tag work or do I have to
worry about bumping into Displaytag?

Thanks.


--Marty



-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to