I'm using Java, JPA, Wildfly and Primefaces. I have a table that displays text, but this text is being cut in view by table size. I have to create a boon that calls a modal to display the full text. table row has its button to display its detail. The problem is that on any button that I trigger it shows me the last string, the last text. Here is the XHTML code in the column:
<p:column headerText="Detalhes">
<p:commandButton value="Visualizar detalhes" type="button"
onclick="PF('dlg1').show();" update="idDescricao" />
<p:dialog header="Modal Detalhes" widgetVar="dlg1" minHeight="40"
width="700" id="idDescricao">
<p:outputPanel id="multiCarDetail" style="text-align:center;">
<ui:repeat value="#{cadastroMB.listaCadastro}" var="cad">
<h:outputText value="#{cad.descricao}" />
</ui:repeat>
</p:outputPanel>
</p:dialog>
</p:column>
The Image below shows that I pressed the second button but this is showing me the one of the first line