Michael,
Just chop your collection into a collection of Object[5]. Then pass this as your data source. Then each column is just item[0], item[1], etc...
Ciao,
Jonathan O'Connor
XCOM Dublin
Michael Engelhart <[EMAIL PROTECTED]>
02/06/2005 21:53
|
|
Hi -
I have a simple Collection of objects that only have a single
attribute "name" that I want to display in rows and columns using
contrib:table and am not sure of the way to get this to work.
is there a way to tell contrib:table to go across while looping up to
say 5 columns and then creating a new row? So each cell is a new
object, not a field of an object that represents the row.
for example if my class is
public class Name {
private String name;
public String getName() {
return this.name;
}
}
I want the output to show up like this:
Name1 Name2 Name3 Name4 Name5
Name6 Name7 Name8 Name9 Name10
so far my code hasn't worked and I can only succeed in having the
table repeat each object in the list across the table 5 times for
every row.
Thanks for any tips.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
IBM Workplace 2.5 Launch Events:
XCOM AG und IBM laden zum weltweiten Launch von IBM Workplace Collaboration Services 2.5 nach Duesseldorf, Frankfurt und Berlin: http://lotus.xcom.de/events
XCOM Express Programm:
Der schnelle Einstieg in neueste Technologien zum kleinen Preis - Portale, e-Mail Security und Mobility: http://lotus.xcom.de/express
*** XCOM AG Legal Disclaimer ***
Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.
This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
