the change to the code that I suggested below. If you look at
the code, the bug is very obivious.
-Original Message-
From: Arron Bates
Sent: Sun 1/13/2002 11:31 PM
To: Struts Users Mailing List
Cc:
Subject: Re: Bug in BeanUtils.populate
Builds as of a few days ago will accept implementations of
java.util.List as well as the primitive arrays the spec defines.
so does List work as well with your nested tags as Object[] ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
To: Struts Users Mailing List
Subject: Re: Bug in BeanUtils.populate()
The method definitions were literally cut-and-paste from the spec.
There is no other code in the spec relating to indexed properties.
Arron.
Jason Chaffee wrote:
The spec. supports the following:
setFoo(int index, Object
That's what made me look into it. :)
Was getting feedback that the iterate:tag will stake anything that
remotely smells like a collection, and I've always said that the nested
tags sit on the other ones, so why didn't it work?... difference in how
the properties are fetched, as they're all
[])
value)[0],
parameterType);
} else {
parameters[0] = value;
}
}
-Original Message-
From: Arron [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:55 AM
To: Struts Users Mailing List
Subject: Re: Bug
Mailing List
Subject: Re: Bug in BeanUtils.populate()
Here is the spec...
http://java.sun.com/products/javabeans/docs/beans.101.pdf
...where in it does it have...
void setFoo(int index, Object[] array)
...? Indexed methods description starts on page 40, and go over to 41.
Arron.
Jason
[mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 3:03 PM
To: Struts Users Mailing List
Subject: Re: Bug in BeanUtils.populate()
I get what you're trying to do now.
Sorry about all that.
If you can test your change and make a CVS diff of the changes, why
don't you log a bugzilla bug in commons
tested my change and it works fine.
-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 3:03 PM
To: Struts Users Mailing List
Subject: Re: Bug in BeanUtils.populate()
I get what you're trying to do now.
Sorry about all that.
If you can test your
BeanUtils works correctly in that if you want to set against an index,
you can have the following forms.
Quoted from the bean spec --==
void setter(int index, PropertyType value); // indexed setter
PropertyType getter(int index); // indexed getter
void setter(PropertyType
: Arron Bates
Sent: Sun 1/13/2002 11:31 PM
To: Struts Users Mailing List
Cc:
Subject: Re: Bug in BeanUtils.populate()
BeanUtils works correctly in that if you want to set against an
index,
you can have the following forms
10 matches
Mail list logo