how to create a new datatable on rowclick from another datatable
posted 7 years ago
i am new to jsf and richfaces and I'm a little confused on how to create a new data table (on the same page) when clicking on a row from another data table. I have tried these options, but i can't get any to work please help. thanks!
Option 1 works in such that it prints out in the console the case_name that I want to see. But I don't know how to make a new data_table showing the same case_name on the same page, on another data table when I click the row that corresponds to it.
Option 2, I actually just got this from a book, and I don't know how else to proceed. What do I put in the selected attribute in my backing bean? book instructed to show the output this way:
but i can't seem to make it work. can anyone help me do this? thank you!!!