Hello all. I'm very new to JSF and have encountered an issue with my first project I am attempting and was hoping I could get some advice.
I successfully created a backing bean and am able to retrieve data from the database, put the results in a list and display them using a dataTable. Now each row is summary data and I would like the user to be able to click on a row and get a pop up using a layer to display the details.
My question is what is the best approach to doing this? Could I return the results and the details all in one result and just hide the details until the user clicks a row? Or is it better to have the click on the row send an id and then go back to the databse and write the results to the pop up layer? There won't be many results so I'm not too worried about performance.
Any advice would be very much appreciated. Thanks in advance!