Re: adding / creating new collection elements in a form

2003-06-08 Thread Rob
, learn it. It has the magic that I cant live without Good luck!!! -Dan - Original Message - From: Rob [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 8:55 AM Subject: Re: adding / creating new collection elements in a form Perhaps I

Re: adding / creating new collection elements in a form

2003-06-07 Thread Rob
Perhaps I was not making myself clear when I first posted this. I know how to write the javascript, I know how to use struts nested/logic tags. What I was looking for when I posted was a solution whereby I could add new elements to a collection in a form. Not update existing elements, thus

Re: adding / creating new collection elements in a form

2003-06-07 Thread Dan Tran
it. It has the magic that I cant live without Good luck!!! -Dan - Original Message - From: Rob [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, June 07, 2003 8:55 AM Subject: Re: adding / creating new collection elements in a form Perhaps I was not making

adding / creating new collection elements in a form

2003-06-06 Thread Rob
I've not been able to find a solution to this within the mailing list. But I would like to the following. I have a page with a collection of fields which are populated by a form (via it's collection). I also have a button which would allow the addition of a new row. (hopefully) Name Descrip [

Re: adding / creating new collection elements in a form

2003-06-06 Thread Sashi Ravipati
I have a javascript wich woks, u can give it a try, replace the html tags with Struts Html tags, it should work html head titleadding table rows with input elements /title script type=text/javascript var TDCount = 0; function insertTableRow(id) { var table = document.getElementById(id); // get

Re: adding / creating new collection elements in a form

2003-06-06 Thread Vic Cekvenich
Get a multi row to work by itslef first. (without JavaScript add) and unit test. Once you get this working, saving, you can just view HTML (in the working browser ) and realize that struts just emits standard form HTML. You can examine this HTML and get your .js to emit same via add button.