You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Marco Mistroni <mm...@gmail.com> on 2006/03/06 17:13:15 UTC
DataTable & columns
Hello all,
i was wondering, with a datatable how can i display 'more than 1 row of
data' on the same table row.
Let me explain better
Suppose i have a dataTable containing n of MyObject objects (with two
properties, propA and propB)
instead of displaying one object per table row, is it possible to, let's
say, display 3 objects per row?
htanks in advance and regards
marco
Re: DataTable & columns
Posted by Andrew Robinson <an...@gmail.com>.
The best thing I can think of is to have your objects grouped in the
bean. For example:
public List<List<Bean>> getData();
<t:dataTable var="innerList" value="#{mybean.data}">
Then you can put as many "beans" per row as you want. The "innerList"
variable would be a "List<Bean>".
-Andrew
On 3/6/06, Marco Mistroni <mm...@gmail.com> wrote:
> Hello all,
> i was wondering, with a datatable how can i display 'more than 1 row of
> data' on the same table row.
>
> Let me explain better
>
> Suppose i have a dataTable containing n of MyObject objects (with two
> properties, propA and propB)
>
> instead of displaying one object per table row, is it possible to, let's
> say, display 3 objects per row?
>
> htanks in advance and regards
> marco
>
Re: DataTable & columns
Posted by Marco Mistroni <mm...@gmail.com>.
Thanx Jana,
that's exactly what i need ..
regards
marco
On 3/6/06, Jana Parvanova <ja...@sirma.bg> wrote:
>
> Maybe Tomahawk's Newspaper table could help you?
> http://myfaces.apache.org/tomahawk/newspaperTable.html
>
> ----- Original Message -----
> From: "Marco Mistroni" <mm...@gmail.com>
> To: "MyFaces Discussion" <us...@myfaces.apache.org>
> Sent: Monday, March 06, 2006 6:13 PM
> Subject: DataTable & columns
>
>
> Hello all,
> i was wondering, with a datatable how can i display 'more than 1 row of
> data' on the same table row.
>
> Let me explain better
>
> Suppose i have a dataTable containing n of MyObject objects (with two
> properties, propA and propB)
>
> instead of displaying one object per table row, is it possible to, let's
> say, display 3 objects per row?
>
> htanks in advance and regards
> marco
>
>
Re: DataTable & columns
Posted by Jana Parvanova <ja...@sirma.bg>.
Maybe Tomahawk's Newspaper table could help you?
http://myfaces.apache.org/tomahawk/newspaperTable.html
----- Original Message -----
From: "Marco Mistroni" <mm...@gmail.com>
To: "MyFaces Discussion" <us...@myfaces.apache.org>
Sent: Monday, March 06, 2006 6:13 PM
Subject: DataTable & columns
Hello all,
i was wondering, with a datatable how can i display 'more than 1 row of
data' on the same table row.
Let me explain better
Suppose i have a dataTable containing n of MyObject objects (with two
properties, propA and propB)
instead of displaying one object per table row, is it possible to, let's
say, display 3 objects per row?
htanks in advance and regards
marco