I have a p:dataTable with some columns that contain p:outputLabel components. I want to add p:ajax functionality so that if the user clicks on the outputLabel, I can call a server-side process to do some stuff - in the simple case it would gather some information and display that in a dialog.
I'm looking for something like this
<p:outputLabel value="#{term.explanation}" >
<p:ajax event="click" listener="#{backingBean.myListener}" />
</p:outputLabel>
Obviously, this doesn't work, so I was wondering if someone might be able to give me a hint on how I can get something like this. The constraint is that the dataTable needs to keep the p:outputLabel components - just need some way to ajaxify them.
Thanks in advance. Dave J.