Subtable in DataTable?

UI Components for JSF
Post Reply
egbokul
Posts: 30
Joined: 11 May 2010, 15:39

18 Aug 2010, 08:40

I'd like to render a dataTable which looks somehow like this (eg. with header rows within data rows):
http://livedemo.exadel.com/richfaces-de ... &tab=usage

However I didn't find this "subtable" feature in Primefaces.
I could use TreeTable, and have expandable headers, but then I would loose all the nice features of DataTable (like row selection).

Is there an easy way to emulate "subtable" behaviour within p:dataTable?

egbokul
Posts: 30
Joined: 11 May 2010, 15:39

18 Aug 2010, 08:42

Ooops, I forgot to search first:
http://primefaces.prime.com.tr/forum/vi ... t=subtable

Anyway, nice reminder not to forget this feature ;-)
Thanks!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Aug 2010, 11:42

Hi,

I think we'll have this feature in 2.2.1, we've just added grouping;

http://www.primefaces.org/labs/ui/datatableGrouping.jsf

Once the datatable gets stable in 2.2, we can add it subtable easily for 2.2.1.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

28 Oct 2010, 17:23

I'd like to vote for the subtable feature, but I can't find a feature request in the issue tracker. Should one be created?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Oct 2010, 23:38

If it doesn't exist, you are welcome to create one.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

29 Oct 2010, 14:15


User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

05 Aug 2011, 01:26

The prototype is looking good.

Alex
Posts: 256
Joined: 16 Dec 2010, 14:24
Location: Germany

05 Aug 2011, 15:53

Just read, that this is now "fixed"! Great work so far, looks very nice.

Wasn't able to test it on my own, but I have some questions:
- is it possible to toggle some of the subtables?
- is it possible to sort inside of the subtables?
PrimeFaces 3.2
Mojarra 2.0.2
Glassfish 3.0.1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

05 Aug 2011, 15:58

http://t.co/CyQzh1q

1) Nope (I suggest using a regular table with expandable rows to implement that)
2) Only the grouping column as seen in example.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 35 guests