tabView with 2 tabs; table on 1 tab and tree on the other

UI Components for JSF
Post Reply
janir
Posts: 3
Joined: 04 Oct 2011, 18:18

04 Oct 2011, 20:37

Hi!

I have situation where I have a tabview with 2 tabs; the 1st tab contains a datatable and the other a tree
When I click on a row in the table, it fetches data that should be shown on the other tab, but when I click it there is nothing, after I click F5 to refresh the data appears
How do I update the other tab after I have clicked a row in the datatable ?

I am using primefaces 2.2.1

Thanks,
JaniR

robert.m
Posts: 226
Joined: 07 Dec 2010, 22:52
Location: Salzburg/Austria

04 Oct 2011, 21:16

you can set the tabView to dynamic=true which means, the data of the according tab is loaded when it is selected.

janir
Posts: 3
Joined: 04 Oct 2011, 18:18

05 Oct 2011, 08:15

Hi!
Thanks for the info but I can't get it to work
I have a command button that fetches data and displays this in a table (the table is in the 1st tab)
I set the command button to update the table (update="materials, globalMessage"), globalMessages is use to show the error messages, materials is the datatable
So it should work so that when I click the row in the dataTable and click then the 2nd tab additional data is shown there

If I now set the dynamic = true for the tabView nothing is shown in the table on the 1st tab

JaniR

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 37 guests