Display complete modal string

0

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

    
asked by anonymous 24.08.2016 / 21:18

1 answer

1

The problem is that in your test there is no space between the words "Test", which makes it a very large word. PrimeFaces breaks the line as is the case with the first line of the image. Try to make spaces between words that will make the test more realistic.

    
25.08.2016 / 14:45