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
>cc:
Subject: dynamically sized form
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
ist"
<[EMAIL PROTECTED]>
>cc:
Subject: Re: dynamically sized form
://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
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
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
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 -
> 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
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
ing an
ArrayIndexOutOfBoundsException
property="taxRates" indexId="ctr" >
style="width: 50px; text-align: right;"/>
-Richard
-Original Message-
From: Matt Bathje [mailto:[EMAIL PROTECTED]
Sent: Thursd
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
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
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
> > 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
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.
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
> 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("
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
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
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
, 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
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
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
cc:
12/10/2003 01:33 Subject: RE: dynamically sized form
(mostly solved)
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
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
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
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
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
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
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
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
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
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
cc:
Subject: Re: dynamically sized form
(mostly solved)
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
>
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
|
| cc:
|
|
: [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.
>
#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,
>
>
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
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
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
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
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
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,
>
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:
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
-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
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
51 matches
Mail list logo