wood burning stoves 2.0*
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
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Data from search not being dynamically added to rich:dataTable
 
Similar Threads
Retreiving the selected value of the suggestion box
rich:suggestionbox suggestionAction is not fired
RichFaces SuggestionBox Not Displaying Values
Suggestionbox and customized converters
javascript error while selecting value from combo box