Probably not a good idea to be populating session scope unnecessarily.
On 5/23/05, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> What a bummer. I got the wrong scope!?! If I put the Form in session scope
> it works fine. Gonna borrow a tie from my boss so I can hang myself...
>
>
> Cheers,
>
> Nils
eption
}
return super.get(index);
}
}
obviously this is simplified form of that class.
Thanks and Regards,
Nitish Kumar
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 7:27 PM
To: Struts Users Mailing List
Subject: Re: Populating growing List
The reason this isn't working lies in how Commons BeanUtils works. What you
read in the wiki works for setting the properties of nested "indexed beans"-
not straight forward indexed properties. In this circumstance it will just
call the indexed setter so for it to work you need your lazy code there
On the surface it looks like the code is wrong. Index 0 represents a
size of 1 (zero-based array). Once you account for that, your array
should grow as you desire.
Regards...djsuarez
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 6:50 AM
To:
27;Struts Users Mailing List'
Subject: RE: Populating growing List
dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.
Thanks and Regards,
Nitish Kumar
-Original Message
27;Struts Users Mailing List'
Subject: RE: Populating growing List
dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.
Thanks and Regards,
Nitish Kumar
-Original Message
]
Sent: Monday, May 23, 2005 5:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List
If your form bean is being used in multiple page, you can put the form in
session and clear the collection in reset method if required. That will
serve the purpose. In my application we
-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 5:44 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List
dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean
, 2005 5:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Populating growing List
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself...
Cheers,
Nils
-Original Message-
From: Ni
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself...
Cheers,
Nils
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing L
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself...
Cheers,
Nils
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing L
11 matches
Mail list logo