I stand corrected. It *should* work, since, as the wiki says, "Struts 1.2.4 will wrap the LazyDynaBean in a BeanValidatorForm automatically." I don't have time to look into it right now, though. Maybe someone else can see what the problem is.
Hubert On 4/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thanks Hubert ! > > Perhaps the wiki: http://wiki.apache.org/struts/StrutsCatalogLazyList is > not correct or I am interepting it falsely, > It has this note in the section LazyDynaBean/LazyValidatorForm: > N.B. Solutions here require Struts 1.2.4 and Bean Utils 1.7.0 > > - Glenn > > Hubert Rabago <[EMAIL PROTECTED]> > 21/04/2005 11:49 AM > Please respond to "Struts Users Mailing List" > > To: Struts Users Mailing List <user@struts.apache.org> > cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) > > Subject: Re: DynaActionForm: ArrayIndexOutOfBoundsException > Classification: > > > You need to use an ActionForm subclass for your form-bean. The > Lazy-flavored form bean was added after 1.2.4. If you're unable to > upgrade from 1.2.6, consider adding it directly to your code base for > now. > > You can get it here: > http://svn.apache.org/viewcvs.cgi/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/validator/LazyValidatorForm.java?view=markup > > Hubert > > On 4/21/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Oh man... I'm slightly confused this morning... perhaps an espresso is > > required ! > > I have been reading and searching based on the links below... however I > am > > stuck. > > > > For the time being this is what I have done; upgraded to : > > - Struts 1.2.4 > > - BeanUtils 1.7 > > - Collections 3.1 > > - Digester 1.6 > > - Logging 1.0.4 > > > > I have used the jars and taglibs found here: > > jakarta-struts-1.2.4/contrib/struts-el/lib > > In my struts-config.xml I have this: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD > Struts > > Configuration 1.2//EN" > > > > "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> > > > > <form-bean name="lazyCWWHistoryForm" type= > > "org.apache.commons.beanutils.LazyDynaBean"> > > <form-property name="historyItems" type= > > "hronline.secure.personal.cWWHistory.CWWHistoryVO[]"></form-property> > > </form-bean> > > ... > > > > I get these errors: > > - Type org.apache.commons.beanutils.LazyDynaBean does not support form > > properties > > - org.apache.commons.beanutils.LazyDynaBean must be a subclass of the > > org.apache.struts.action.ActionForm > > > > Now based on the errors it seems that I am not referencing the correct > > jar? > > Something else? > > > > - Glenn > > > > Hubert Rabago <[EMAIL PROTECTED]> > > 20/04/2005 02:49 PM > > Please respond to "Struts Users Mailing List" > > > > To: Struts Users Mailing List <user@struts.apache.org> > > cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) > > > > Subject: Re: FW: DynaActionForm: > > ArrayIndexOutOfBoundsException > > Classification: > > > > > > Take a look at > > > > http://struts.apache.org/faqs/indexedprops.html > > http://www.developer.com/java/other/article.php/2233591 > > http://wiki.apache.org/struts/StrutsCatalogLazyList > > > > Also, search the archives (like > > http://marc.theaimsgroup.com/?l=struts-user ) for "lazylist" to get > > ideas on approaches to dealing with dynamically sized form fields. > > > > Hubert > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]