This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes Data from search not being dynamically added to rich:dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Data from search not being dynamically added to rich:dataTable" Watch "Data from search not being dynamically added to rich:dataTable" New topic
Author

Data from search not being dynamically added to rich:dataTable

Michael Hughes
Greenhorn

Joined: Jun 01, 2011
Posts: 4
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

Joined: Apr 12, 2011
Posts: 200

Where's the dataTable?
Michael Hughes
Greenhorn

Joined: Jun 01, 2011
Posts: 4
Sorry I forgot it. Here it is:

Michael Hughes
Greenhorn

Joined: Jun 01, 2011
Posts: 4
Solved by doing something different in my bean:






Where getSingleResult() is from each individual search.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Data from search not being dynamically added to rich:dataTable