I basically have a datatable in which one of the columns is clickable. I have done this by using the commandlink from primefaces.
Everywhere people have used this only to navigate, but I want the click to result in opening a sub datatable. Depending on which row I click on in that column the corresponding datatable must appear.
Can this be done using in primefaces, if so how do I proceed?
Thanks
I finally resolved this problem. I basically created one datatable and hid it, depending on the column clicked I used the backing bean to populate the datatable accordingly.
I made the onclick event call a function in the backing bean using the following code:
So basically something like a dynamic datatable.