Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create a new datatable on rowclick from another datatable

 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
click this links..
https://community.jboss.org/thread/164648?_sscc=t
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic