There was a good tutorial on this possibly linked from the struts page
titled Monkey Struts. I found it to be quite good, very easy to
follow.
David Graham wrote:
I want to have a form with a variable number of input boxes. For
example, a simple edit person form that has a first name and
On 9/11/2002 at 11:00 AM David Graham wrote:
I want to have a form with a variable number of input boxes. For
example, a
simple edit person form that has a first name and last name input box for
each person in your db. So the first set would be named firstName_12
lastName_12, the second set
]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Dynamic number of form fields
Date: Wed, 11 Sep 2002 13:34:18 -0400
On 9/11/2002 at 11:00 AM David Graham wrote:
I want to have a form with a variable number of input boxes. For
example, a
simple edit person form that has a first name
PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: Dynamic number of form fields
Date: Wed, 11 Sep 2002 13:34:18 -0400
On 9/11/2002 at 11:00 AM David Graham wrote:
I want to have a form with a variable number of input boxes. For
example, a
simple edit
]
Subject: Re: Dynamic number of form fields
I'm having some trouble getting this to work. I get the error message
javax.servlet.jsp.JspException: No getter method for property
categoryName(2) of bean org.apache.struts.taglib.html.BEAN
I have a HashMap in my form called categoryNames and a getter
On 9/11/2002 at 1:02 PM David Graham wrote:
Brilliant! Thanks so much for your help! That's a lot more elegant than
what I had been doing, although it does create interesting dilemmas with
javascript. Hopefully that patch will make it into the docs soon.
Glad you found the docs useful. Out
On 9/11/2002 at 2:53 PM David Graham wrote:
I'm having some trouble getting this to work. I get the error message
javax.servlet.jsp.JspException: No getter method for property
categoryName(2) of bean org.apache.struts.taglib.html.BEAN
I have a HashMap in my form called categoryNames and a
AM
Subject: Re: Dynamic number of form fields
The Dyna beans don't exactly give you what you're looking for. The
properties of a Dyna bean must be known at deployment time, do they're not
directly suited for dynamic forms (the Dyna prefix is a bit misleading).
What you probably want are map
On 9/11/2002 at 3:56 PM Hemanth Setty wrote:
Correct me if I wrong, I think in the bean it should be:
void setCategoryName(Map categoryName) and
Map getCategoryName()
-hemanth
I'm reasonably certain that you're wrong. The map-backed ActionForm parsing
code doesn't actually presume that there's
PROTECTED]
Sent: Wednesday, September 11, 2002 10:34 AM
Subject: Re: Dynamic number of form fields
The Dyna beans don't exactly give you what you're looking for. The
properties of a Dyna bean must be known at deployment time, do they're
not
directly suited for dynamic forms (the Dyna prefix
On 9/11/2002 at 3:59 PM David Graham wrote:
Javascript doesn't like it when you use things like [ or ( in the name of
a
form field. There are several ways of coding the js and one of them
accepts
those characters (I think). So, you can still use javascript to validate
it
but you might have
On 9/11/2002 at 3:20 PM John Averty wrote:
Duuh! Sorry about that.
I'd like to bring it one step further: I'd like to be able to set the
corresponding field type.
Would the following work?
% for (int i=0; i10; i++) {
String name = value(foo- + i + );
String type = type(foo- + i + );
Yep, I think you're right. That was worth a try though ;-)
Thanks,
John.
- Original Message -
From: Donald Ball [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 3:24 PM
Subject: Re: Dynamic number of form fields
On 9
13 matches
Mail list logo