Dennis,
thanks again for the response. i think you answered both of my
questions. i'm just trying to get the appropriate dot notation to
work. :)
thanks
andy
----- Original Message -----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wed, 7 Jul 2004 15:18:22 -0400
Subject: Re: [displaytag-user] using an object that contains a list of objects
To: [EMAIL PROTECTED]
Your original question was "...so
how do i get displaytag to extract my list of lists from my customer object?"
and I thought you were asking
how to pass in a list attribute to displayTag and I thought that the simple
answer would be using the proper dot notation e.g.
<display:table name="sessionScope.customer.group.items"
/>
But I guess I misunderstood. Assuming
you have a finite number of lists, why don't you just have a little scriptlet
that extracts each leaf-node collection into a temporary page or request
scope bean (tempList) and then pass these temp lists to displayTag?
However, assuming that this still doesn't
solve your problem, you may have to wrap displayTag in some scriptlet code
to iterate over your customers/groups, create requestScope beans and pass
the beans to displayTag.
HTH,
Dennis
Andrew Close <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/07/2004 02:23 PM
Please respond to
[EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
Re: [displaytag-user] using
an object that contains a list of objects
ok,
so the datasource 'has' to be either:
* a Collection
* an Enumeration
* a Map (values are displayed in row)
* a Dictionary (values are displayed in row)
* an array
* an Iterator
* any Object with an iterator() method
* ... any other object will be displayed on a single row
so my object would fall under the last item in the list and 'should'
display as a single row...
ok, so can i get a list of lists to work?
ArrayList sourceList = new ArrayList();
ArrayList data1 = new ArrayList();
ArrayList dataX= new ArrayList();
populate data1 - dataX with objects. add data1 - dataX to sourceList.
pass sourceList to displaytag and get all the objects in data1 - dataX
to be displayed.
so will displaytag be able to handle nested lists? or will it just
display the binary output of each list in a new row in the table?
this is what i'm unable to do.
i have a collection of collections. and i want to be able to build
a
table using the leaf nodes of one of the collections in the collection
that i pass to displaytag.
thanks
----- Original Message -----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wed, 7 Jul 2004 13:13:32 -0400
Subject: Re: [displaytag-user] using an object that contains a list of
objects
To: [EMAIL PROTECTED]
http://displaytag.sourceforge.net/tut_sources.html
"You can also access javabean style
properties..."
Dennis
Andrew Close <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/07/2004 12:39 PM
Please respond to
[EMAIL PROTECTED]
To
[EMAIL PROTECTED]
cc
Subject
[displaytag-user] using an
object that contains a list of objects
Hello,
i'm hoping to use displaytag in a major refactoring of this
application i'm working on. but i'm having some problems working
with
my existing objects.
currently we have a cusotmer object with various attributes. one
of
the attributes is an ArrayList of group objects. each group object
has several attributes including an arraylist of item objects.
so i'm hoping to display all of the items for each group in my
customer object. each group could be a nested table...
so how do i get displaytag to extract my list of lists from my
customer object? or is this even possible with the way myobjects
are
set up right now?
thanks
andy
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user