¿Can I use DataTree with DataTable with the same list Obj?

UI Components for JSF
Post Reply
jeronimocarrizo
Posts: 23
Joined: 22 Jul 2010, 22:19
Location: Argentina - Buenos Aires - Escobar - Ing. Maschwitz

03 Aug 2010, 15:42

He wanted to know if possible as it would be very useful to list objects in this way, it would need to list many items.

Thank you very much!
Primefaces-2.1 - GlassFish Server 3.0.1 - Windows 7 Enterprise - Maven

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

03 Aug 2010, 15:49

Hi,

What do you mean by DataTree? Is it p:tree?

You can reuse same model on different components for sure.

jeronimocarrizo
Posts: 23
Joined: 22 Jul 2010, 22:19
Location: Argentina - Buenos Aires - Escobar - Ing. Maschwitz

03 Aug 2010, 15:57

Sorry for the poor explanation, I wanted to say with <p:dataTable> with <p:treeTable>.
That is, the display will show a tree that "is paged".
Primefaces-2.1 - GlassFish Server 3.0.1 - Windows 7 Enterprise - Maven

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

04 Aug 2010, 10:39

p:dataTable requires a list but p:treeTable requires the root TreeNode so they need two different data types.

jeronimocarrizo
Posts: 23
Joined: 22 Jul 2010, 22:19
Location: Argentina - Buenos Aires - Escobar - Ing. Maschwitz

04 Aug 2010, 17:38

but, if you wanted to synchronize the list of "DataTable" with the nodes "TreeTable" to show us in one ..no way?
Something like clicking on the "two page" and that the "tree nodes" shows the list associated with the "data table" records?

I can not think how to synchronize the list with the nodes .. the subject if possible? ;)
Primefaces-2.1 - GlassFish Server 3.0.1 - Windows 7 Enterprise - Maven

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests