DynaActionFormBean Enhancement

2002-05-24 Thread Steve Wilkinson

I haven't seen a reply to this so I'll bring it up on
the user list to see if I can catch a committer's
attention.

Bug: 9322

When playing with the DynaActionForm I noticed
something that I think could be improved upon.  When
there are IndexProperties on the form, either
java.util.ArrayList type an ObjectArray the form does
not provide an accessor that allows retrevial of the
whole object.  You can get at values by index, but 
since you don't know how many items are in the indexed
property you have to catch the
IndexOutOfBoundsException and continue.  I believe
that this would be useful if this type of accessor
were added.

Thanks,
Steve

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: DynaActionFormBean Enhancement

2002-05-24 Thread emmanuel.boudrant


 I'm agree with you, I post a bug release
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8742
 
But here a suggestion, before redisplay a DynaForm bean with indexed property, 
all the array must be initialised. So the size must be know. 
So should we add a attribute in struts-config.dtd to set the default size of 
the indexed property, and when we create an DynaActionForm, the requestutil 
initalize the indexed property with the default size ?

Like this:

form-bean name=toto type =TotoForm
 form-property name=list type=java.lang.String[] size=10/
form-bean/

or like that:

form-bean name=toto type =TotoForm
 form-property name=list type=java.lang.String[10]
form-bean/

  Steve Wilkinson [EMAIL PROTECTED] a écrit : I haven't seen a reply to 
this so I'll bring it up on
the user list to see if I can catch a committer's
attention.

Bug: 9322

When playing with the DynaActionForm I noticed
something that I think could be improved upon. When
there are IndexProperties on the form, either
java.util.ArrayList type an ObjectArray the form does
not provide an accessor that allows retrevial of the
whole object. You can get at values by index, but 
since you don't know how many items are in the indexed
property you have to catch the
IndexOutOfBoundsException and continue. I believe
that this would be useful if this type of accessor
were added.

Thanks,
Steve

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !