Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data from search not being dynamically added to rich:dataTable

 
Michael Hughes
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program where the user searches for data and then click an "Add" button if they wish to add that data to the dataTable. Currently, the data only shows one result at a time (instead of showing all data that has been added).

Bean:



XHTML



I know the logic I need but just can't seem to put it into my code to make this work.

Thank You!
 
Guy deLyonesse
Ranch Hand
Posts: 200
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where's the dataTable?
 
Michael Hughes
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I forgot it. Here it is:

 
Michael Hughes
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved by doing something different in my bean:






Where getSingleResult() is from each individual search.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic