dynamically sized form

2003-11-20 Thread Matt Bathje
Hi all. I am trying to have a dynamically sized forming using indexed properties. I am using the following article: http://www.developer.com/java/ejb/article.php/2233591 as a guide, and have almost got it. The form appears to get properly generated, and each element is listed as taxRates[3].ID, et

Re: dynamically sized form

2003-11-20 Thread Nicholas L Mohler
>cc: Subject: dynamically sized form

Re: dynamically sized form

2003-11-20 Thread Matt Bathje
what I am seeking an answer to. Is there a way to do a dynamically sized form using a DynaForm, instead of a custom form bean class for each one. Thanks again for any insights, Matt - Original Message - From: "Nicholas L Mohler" <[EMAIL PROTECTED]> To: "Struts Users

Re: dynamically sized form

2003-11-20 Thread Nicholas L Mohler
ist" <[EMAIL PROTECTED]> >cc: Subject: Re: dynamically sized form

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
://www.developer.com/java/other/article.php/2214681 http://www.developer.com/java/other/article.php/2233591 -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:53 AM To: Struts Users Mailing List Subject: Re: dynamically sized form Hi again. I guess

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
pulate the array in the form and put the form in session scope. -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 12:51 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form Matt, I think the

Re: dynamically sized form

2003-11-20 Thread Matt Bathje
ks, Matt Bathje - Original Message - From: "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 2:58 PM Subject: RE: dynamically sized form > Matt, > In t

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
that contains a complex datatype (ie a POitem). The # of items is dynamic. -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 1:50 PM To: Struts Users Mailing List Subject: Re: dynamically sized form OK, This gets me a step closer -

Re: dynamically sized form

2003-11-20 Thread Matt Bathje
> DynaActionForm taxRatesForm = new DynaActionForm(); > com.ntso.rsg.bus.tax.TaxRateBean[] taxRates = new > com.ntso.rsg.bus.tax.TaxRateBean[allTaxRates.length]; > > // allTaxRates is the array that holds my data bean > > for(int i=0; i < allTaxRates.length; i++) { > // this is the set I a

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
In your JSP then, I think this code should work w/o producing an ArrayIndexOutOfBoundsException -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:51 PM To: Struts Us

Re: dynamically sized form

2003-11-21 Thread Mark Lowe
ing an ArrayIndexOutOfBoundsException property="taxRates" indexId="ctr" > style="width: 50px; text-align: right;"/> -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Thursd

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
Might I say - woohoo!! Thanks to your guys help, I got this working. I just want to make sure that I'm doing this the best way. In my struts-config file, the preloader has to have the form named in addition to having it on the action. The form is setup to be in the request scope, not in the sessi

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
gets released sooner. I'm not clear on the need to put allTaxRates in session scope. Can you send your JSP code? -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 7:37 AM To: Struts Users Mailing List Subject: Re: dynamically si

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
hard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 7:37 AM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) Might I say - woohoo!! Thanks to your guys help, I got this working. I just want to make sure tha

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
> > DynaActionForm taxRatesForm = new DynaActionForm(); > > and > > taxRatesForm.set("taxRates", allTaxRates); > > request.setAttribute("taxRates", > > allTaxRates); > > Creating a form in the action servlet is one sure way to piss the folks > off who have to maintain the app. You might think it

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
On 21 Nov 2003, at 18:29, Matt Bathje wrote: DynaActionForm taxRatesForm = new DynaActionForm(); and taxRatesForm.set("taxRates", allTaxRates); request.setAttribute("taxRates", allTaxRates); Creating a form in the action servlet is one sure way to piss the folks off who have to maintain the app.

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
o this, you would have to forward to the action that performs the pre-loading (a chained action). You don't need to put anything in session scope. -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 10:29 AM To: Struts

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
> I found out that using new DynaActionForm()inside of the > PreLoaderAction.execute() doesn't work. It gives a null pointer exception > when you try and call the set() method. > > You need to do this instead: > > FormBeanConfig cfg = mapping.getModuleConfig() >.findFormBeanConfig("

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
ssage- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 2:17 PM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) > I found out that using new DynaActionForm()inside of the > PreLoaderAction.execute() doesn't work. It give

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Matt Bathje
Cool, thanks for the extra tip! Matt Bathje - Original Message - From: "Yee, Richard K,,DMDCWEST" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, November 21, 2003 4:22 PM Subject: RE: dynamically

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
ou don't need to put anything in session scope. -Richard -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 10:29 AM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) DynaActionForm taxRatesForm = new DynaAction

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
, November 21, 2003 3:38 PM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) Dick Oh well... There's just no telling some folks.. [OT] But then I've just seen who you're working f

Re: dynamically sized form (mostly solved)

2003-11-21 Thread Mark Lowe
something else that you find objectionable? -Richard -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2003 3:38 PM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) Dick Oh well... There's just no telling some

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nifty Music
ld be greatly appreciated. Thanks so much! Brent -Original Message- From: Yee, Richard K,,DMDCWEST [<mailto:[EMAIL PROTECTED]>] Sent: Friday, November 21, 2003 4:23 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) Matt, You actuall

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nicholas L Mohler
cc: 12/10/2003 01:33 Subject: RE: dynamically sized form (mostly solved)

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Nifty Music
TECTED]> Sent: Wednesday, December 10, 2003 2:07 PM Subject: RE: dynamically sized form (mostly solved) The reason you get the null pointer exception is that the "inventoryList" property in your DynaActionForm is created empty. The exception occurs when Struts tries to pop

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically sized form (mostly solved) Nicholas, What you said definitely makes sense

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
lto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 2:11 PM To: Struts Users Mailing List Subject: RE: dynamically sized form (mostly solved) The reason you get the null pointer exception is that the "inventoryList" property in your DynaActionForm is created empty. The exceptio

Re: dynamically sized form (mostly solved)

2003-12-10 Thread Mark Lowe
What's the problem? On 10 Dec 2003, at 21:20, Yee, Richard K,,DMDCWEST wrote: I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
ruts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically sized

Re: dynamically sized form (mostly solved)

2003-12-10 Thread Mark Lowe
3:20 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: R

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
ArrayIndexOutOfBounds exception. -Richard -Original Message- From: Andy Schmidgall [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:27 PM To: Struts Users Mailing List Subject: RE: dynamically sized form (mostly solved) Would someone be able to point me somewhere that could explain

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Andy Schmidgall
PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) Andy, Check out http://jakarta.apache.org/commons/collections/apidocs/org/apache/commons /col lections/decorators/LazyList.html With a lazy list, if you try and get using an index that is greater than

Re: dynamically sized form (mostly solved)

2003-12-11 Thread Ted Husted
x27; Subject: RE: dynamically sized form (mostly solved) I thought it worked, but it didn't. -Richard -Original Message- From: Nifty Music [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: RE: dynamically sized form (mostly solved) Ni

Re: dynamically sized form (mostly solved)

2003-12-11 Thread Mark Lowe
y work is in vain :) -Andy -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 3:20 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) I thought it worked, but it didn't. -Richard

Re: dynamically sized form (mostly solved)

2003-12-11 Thread Nicholas L Mohler
cc: Subject: Re: dynamically sized form (mostly solved)

RE: dynamically sized form (mostly solved)

2003-12-11 Thread Robert Taylor
exing into your form (formName.selectedItems[0].fieldName) then Struts should handle the rest. Does that help at all? robert > -Original Message- > From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 7:46 AM > To: Struts Users Mailing List >

AW: dynamically sized form (mostly solved)

2003-12-11 Thread Samuel . Opoku-Boadu
Users Mailing List > Subject: Re: dynamically sized form (mostly solved) > > > > > > > > Ted, > > The origin of this thread had to do with using Indexed Properties and a > Dyna* form. As when using the ActionForm, getting the values to the > browser is not a

RE: dynamically sized form (mostly solved)

2003-12-11 Thread Nicholas L Mohler
| | cc: | |

RE: dynamically sized form (mostly solved)

2003-12-11 Thread Robert Taylor
: [EMAIL PROTECTED] > Subject: AW: dynamically sized form (mostly solved) > > > Hallo Robert, > > I am having the same problems. I have a dynaActionvalidator form > which has a few normal fields and an array of check or radio boxes > which should have the same field name. >

RE: dynamically sized form (mostly solved)

2003-12-11 Thread Robert Taylor
#2 robert > -Original Message- > From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 9:32 AM > To: Struts Users Mailing List > Subject: RE: dynamically sized form (mostly solved) > > > > > > > > Robert, > >

Re: dynamically sized form (mostly solved)

2003-12-11 Thread Ted Husted
d handle the rest. Does that help at all? robert -Original Message- From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 7:46 AM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) Ted, The origin of this thread had t

Re: dynamically sized form (mostly solved)

2003-12-11 Thread Matt Bathje
the beanutils.populate errors. Matt Bathje - Original Message - From: "Andy Schmidgall" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 4:01 PM Subject: RE: dynamically sized form (mostly

RE: dynamically sized form (mostly solved)

2003-12-12 Thread Nifty Music
Andy & others Thanks to the help of all of you on the list, I've been able to fully implement using an ArrayList with a DynaValidatorForm in request scope. Special thanks to John Steele for finding the key for doing this. Using his idea, I implemented a special class which extends ArrayLi

RE: dynamically sized form (mostly solved)

2003-12-12 Thread Robert Taylor
TECTED] > Sent: Friday, December 12, 2003 11:59 AM > To: [EMAIL PROTECTED] > Subject: RE: dynamically sized form (mostly solved) > > > Andy & others > > Thanks to the help of all of you on the list, I've been able to > fully implement using an ArrayList w

RE: dynamically sized form (mostly solved)

2003-12-12 Thread Marcus Peixoto
api/org/apache/commons/collect > ions/ListUtils.html#lazyList > > robert > > > -Original Message- > > From: Nifty Music [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 12, 2003 11:59 AM > > To: [EMAIL PROTECTED] > > Subject: RE: dynamically sized f

RE: dynamically sized form (mostly solved)

2003-12-12 Thread Robert Taylor
If it works for you, then rock on :) robert > -Original Message- > From: Marcus Peixoto [mailto:[EMAIL PROTECTED] > Sent: Friday, December 12, 2003 2:42 PM > To: Struts Users Mailing List > Subject: RE: dynamically sized form (mostly solved) > > > Robert, >

RE: dynamically sized form (mostly solved)

2003-12-12 Thread Marcus Peixoto
hristmas time. Who knows. > If it works for you, then rock on :) > > robert > > > -Original Message- > > From: Marcus Peixoto [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 12, 2003 2:42 PM > > To: Struts Users Mailing List > > Subject: RE:

RE: dynamically sized form (mostly solved)

2003-12-15 Thread Andy Schmidgall
Robert, I also could not get LazyList to work with our DynaForms. -Andy -Original Message- From: Marcus Peixoto [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:42 PM To: Struts Users Mailing List Subject: RE: dynamically sized form (mostly solved) Robert, I tried to use

Re: dynamically sized form (mostly solved)

2003-12-15 Thread Mark Lowe
-Original Message- From: Marcus Peixoto [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:42 PM To: Struts Users Mailing List Subject: RE: dynamically sized form (mostly solved) Robert, I tried to use LazyList but I couldn't just put the class in the form definitions (I&#x

Re: AW: dynamically sized form (mostly solved)

2003-12-11 Thread Mark Lowe
isplay in the jsp? Sam -Ursprungliche Nachricht- Von: Robert Taylor [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. Dezember 2003 14:52 An: Struts Users Mailing List Betreff: RE: dynamically sized form (mostly solved) Nicholas, I use DynaActionValidatorForm almost exclusively