I have JSF project with PrimeFaces.
I have a 'dashboard' in my project that contains a small p:panel with a p:datatable. The data in my table gets updated dynamically by my beans. I want to be able to click on one of the labels to open up a dialogue with more data.
This is what a typical column looks like:
<p:column style="text-align: left">
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
<h:outputText value="#{t.name}" style="text-align: left"/>
</p:column>
Then I would have another column for something like totals or time, it depends.
In my bean I have a sql query running and populating a list which populates the datatable,nothing intricate.
How would I go about - efficiently - making or replacing the outputText so it's clickable and opening a dialogue which would be populated with data based on which value I clicked on.
The problem I think that I might encounter is that the value in that column is a name, and not an ID in my db (which I will need to get the rest of the data to populate the dialogue box)
Should I change the outputText to a link and have some sort of ajax call to open up the dialogue box and get the data?

