aspose file tools*
The moose likes JSF and the fly likes how to create a new datatable on rowclick from another datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to create a new datatable on rowclick from another datatable" Watch "how to create a new datatable on rowclick from another datatable" New topic
Author

how to create a new datatable on rowclick from another datatable

christine clarin
Ranch Hand

Joined: Feb 05, 2005
Posts: 106
hello,

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:

this is my jsp file:


my bean file:


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:


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!!!
Criselda Clave
Greenhorn

Joined: Mar 07, 2013
Posts: 6
click this links..
https://community.jboss.org/thread/164648?_sscc=t
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to create a new datatable on rowclick from another datatable