Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Tamas Szabo
On 12/30/05, Rick R <[EMAIL PROTECTED]> wrote: > > Tamas Szabo wrote: > > > You will have to use a PhoneNumber object so you will have a reference > to > > employee[idx1].phoneNumbers[idx2].number in your html:text. > > Thanks Tamas! That was exactly the problem. Typically I do exactly that > and

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Priya Saloni
Hi Rick, Iam getting problem while iam trying to use the following code in my JSP I got that code from the article http://wiki.apache.org/struts/StrutsCatalogLazyList Priya On 12/29/05, Rick R <[EMAIL PROTECTED]> wrote: > > Frank W. Zammetti wrote: > > > > I'm still though th

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Priya Saloni
Thanks Geeta, I have Commons-Collections 2.1.1.Now no problem. On 12/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Priya Saloni <[EMAIL PROTECTED]> wrote on 12/29/2005 02:50:06 PM: > > > Sorry for the dumb question but i have to ask ..from where i can get > this > > class org.apache.c

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread gramani
Priya Saloni <[EMAIL PROTECTED]> wrote on 12/29/2005 02:50:06 PM: > Sorry for the dumb question but i have to ask ..from where i can get this > class org.apache.commons.collections.list.LazyList.. > > from this url > http://jakarta.apache.org/commons/collections/apidocs- > COLLECTIONS_3_1/org/ap

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Priya Saloni
Sorry for the dumb question but i have to ask ..from where i can get this class org.apache.commons.collections.list.LazyList.. from this url http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_1/org/apache/commons/collections/list/LazyList.html I found out that its part of Commons

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Frank W. Zammetti wrote: I'm still though thinking about your question regarding how I would do it... I've never used LazyList, although I can see why you did. Using the reset() method in this way has been nagging me though because I typically would never use it except when dealing with checkb

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Frank W. Zammetti
Good catch indeed Tamas! I was just getting around to replying to you Rick, after some PC problems last night stopped me from doing so sooner, and I was coming to the exact same conclusion when I saw Tamas' reply. He beat me to the punch :) I'm still though thinking about your question regarding

Re: [solved] Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Tamas Szabo wrote: You will have to use a PhoneNumber object so you will have a reference to employee[idx1].phoneNumbers[idx2].number in your html:text. Thanks Tamas! That was exactly the problem. Typically I do exactly that and use lists of beans, but this time I thought I'd make the demo

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Tamas Szabo
On 12/29/05, Rick R <[EMAIL PROTECTED]> wrote: > > Tamas Szabo wrote: > > >> public void reset(ActionMapping actionMapping, HttpServletRequest > >> httpServletRequest) { > >> > >> employees = ListUtils.lazyList(new java.util.ArrayList(), new > >> Factory() { > >> public Object create(

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Rick R
Tamas Szabo wrote: public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { employees = ListUtils.lazyList(new java.util.ArrayList(), new Factory() { public Object create() { return buildEmployee(); } }); } private Emplo

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-29 Thread Tamas Szabo
Hi! On 12/29/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > I'm still stumped with the best way to handle cases where your nesting > goes a bit deeper than just into one list in your ActionForm (and you > want to use Request scope for your ActionForm). Yes, I know many of you > state that it mean

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-28 Thread Rick R
Frank W. Zammetti wrote: Rick, what is the real problem here? I ask because what your trying to do seems reasonable to me and I'd probably do something similar, although I probably wouldn't use LazyList (I'd probably build the list manually), but that doesn't really matter. I would *not* use

Re: Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-28 Thread Frank W. Zammetti
Rick, what is the real problem here? I ask because what your trying to do seems reasonable to me and I'd probably do something similar, although I probably wouldn't use LazyList (I'd probably build the list manually), but that doesn't really matter. I would *not* use session for this as I can

Revisiting nested Lists (again:) using Request scope ( also related to LazyList )

2005-12-28 Thread Rick Reumann
I'm still stumped with the best way to handle cases where your nesting goes a bit deeper than just into one list in your ActionForm (and you want to use Request scope for your ActionForm). Yes, I know many of you state that it means you have a complicated UI, but I've had numerous questions com