, 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
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
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
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
[
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
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.
6 matches
Mail list logo