Re: [solved] array of indexed html:text values not submitting

2004-09-21 Thread bradyh
Thanks very much, this was the problem. I didn't realize that (if I understand the problem correctly) setting name="item" in the html:text tag would tell it to put the result in a form-bean called "item" instead of the correct one which was "items". Brady > I really think the inconsistent usage

Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
: [EMAIL PROTECTED] | | cc: | | Subject: Re: array of indexed html:te

Re: array of indexed html:text values not submitting

2004-09-21 Thread dhay
ject: Re: array of indexed html:text values not submitting | >| I caught the DynaValidatorActionForm/DynaValidatorForm proble

Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
Matt Bathje wrote: I really think the inconsistent usage of item/items is your problem here. Try changing the c:forEach var="item" to be var="items" and then change your html:text name="item" to have name="items". The name for the html:text needs to generate the form-property from your form bea

Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
I really think the inconsistent usage of item/items is your problem here. Try changing the c:forEach var="item" to be var="items" and then change your html:text name="item" to have name="items". The name for the html:text needs to generate the form-property from your form bean definition for th

Re: array of indexed html:text values not submitting

2004-09-21 Thread bradyh
I caught the DynaValidatorActionForm/DynaValidatorForm problem too after I sent out the email and corrected it but it didn't help. Here are a few lines of my JSP (which should explain the item/items question): and here's the resulting html: BTW: I tried updating

Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
I see 2 things wrong right now - first is that you are using a DynaValidatorActionForm in your form-bean definition, but a DynaValidatorForm to cast the form in your loader and action code. This is not the cause of your problem I think, just something to watch out for. The second is that I'm no

Re: array of indexed html:text values not submitting

2004-09-21 Thread bradyh
Thanks for the reply. Here are the relevant sections of LoadAction and PersistAction: LoadAction: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { Dyn

Re: array of indexed html:text values not submitting

2004-09-21 Thread Matt Bathje
[EMAIL PROTECTED] wrote: I'm working from the examples here: http://www.developer.com/java/ejb/article.php/3321521 I have an array of values that are sent to a page for editing. The page is coming up ok with the correct text box values as seen below (item[0].xxx, etc). But when the form is submit

array of indexed html:text values not submitting

2004-09-20 Thread bradyh
I'm working from the examples here: http://www.developer.com/java/ejb/article.php/3321521 I have an array of values that are sent to a page for editing. The page is coming up ok with the correct text box values as seen below (item[0].xxx, etc). But when the form is submitted the changes don't sh