DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33258





------- Additional Comments From [EMAIL PROTECTED]  2005-01-27 02:30 -------
OK apologies it does work, but only because you're using one property name to 
populate the form (i.e "foo") and a different one to validate (i.e. "foos"). 
You should have have consistent getters/setters for your indexed property:

   public List getFoos()
   public Object getFoos(int index)
   public void setFoos(List foos)
   public void setFoos(int index, Object foo)

and theoretically if you did there wouldn't be any problem with getting it all 
to work.

I said theoretically because there appears to be a problem with this (see Bug 
28358) and looking at the JavaBeans spec it only refers to arrays in regard to 
indexed properties and not Lists, so maybe thats why BeanUtils is having 
problems.

For me its not an issue as all my ActionForm are DynaBean flavours and indexed 
properties work fine with a consistent property name throughout.

It would have been better IMO if you had posted this as an issue to the Struts 
User list first - that way you would reach a wider audience and probably find 
someone who has the same circumstances as you.

Niall

   

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to