Re: Creating an indexed property of DynaActionForms

2004-04-21 Thread Niall Pemberton
ArrayList of LazyDynaBeans. Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 10:51 PM Subject: RE: Creating an indexed property of DynaActionForms

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
ng List Cc: Subject: Re: Creating an indexed property of DynaActionForms OK, then I repeat my earlier answer - use (or at least look at) the "Lazy" versions I wrote. http://www.niallp.pwp.blueyonder.co.uk/ is all it needs. If you look at the get(String name, int index) method

Re: Creating an indexed property of DynaActionForms

2004-04-21 Thread Niall Pemberton
s. Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 10:51 PM Subject: RE: Creating an indexed property of DynaActionForms Let me rephrase :) "its MUCH

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
Beans. Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 9:44 PM Subject: RE: Creating an indexed property of DynaActionForms Lemme give an example, Lets s

Re: Creating an indexed property of DynaActionForms

2004-04-21 Thread Niall Pemberton
age - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 9:44 PM Subject: RE: Creating an indexed property of DynaActionForms Lemme give an example, Lets say I have a form for Cars. The main

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
easier to save these records to the database if everything is represented as DynaForms. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 4:27 PM To: Struts Users Mailing List Subject: Re: Creating an indexed property of DynaActionForms I

Re: Creating an indexed property of DynaActionForms

2004-04-21 Thread Niall Pemberton
p Should populate an ArrayList of LazyDynaBeans containing property1 and property2 Niall - Original Message - From: "Nathan Ewing" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, April 21, 2004 8:53 PM Su

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
, April 21, 2004 7:44 AM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForms Use the lazyValidatorActionForm, which allows you to keep things request scope when using arrays. http://www.niallp.pwp.blueyonder.co.uk

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
List Subject: RE: Creating an indexed property of DynaActionForms I don't think using the lazy beans is a bad approach and if you look at the code, there is very little of it. I got half way to implementing the approach, but the piece I was building was shut down so I don't know how effec

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Takhar, Sandeep
than Ewing [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 1:48 PM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForms I briefly toyed with the idea of trying to fix the flaw myself, but I looked at the struts source code and the change would not be a t

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
Subject: RE: Creating an indexed property of DynaActionForms I couldn't think of one. sandeep -Original Message- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 11:00 AM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForm

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Takhar, Sandeep
I couldn't think of one. sandeep -Original Message- From: Nathan Ewing [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 11:00 AM To: Struts Users Mailing List Subject: RE: Creating an indexed property of DynaActionForms I take it then that there is no way to use n

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Nathan Ewing
I take it then that there is no way to use normal DynaActionForms. It would certainly be a lot simpler. :( Nathan -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 7:44 AM To: Struts Users Mailing List Subject: RE: Creating an indexed

RE: Creating an indexed property of DynaActionForms

2004-04-21 Thread Takhar, Sandeep
Use the lazyValidatorActionForm, which allows you to keep things request scope when using arrays. http://www.niallp.pwp.blueyonder.co.uk/ Unfortunately I haven't tried this, but am pretty sure it works. sandeep -Original Message- From: Natha