Stretch column table in Primefaces
Posted
by
Orange91
on Stack Overflow
See other posts from Stack Overflow
or by Orange91
Published on 2013-07-01T16:18:24Z
Indexed on
2013/07/01
16:21 UTC
Read the original article
Hit count: 336
How I can prevent to stretch table when I input long text:
Screen: http://zapodaj.net/71821572f2445.jpg.html
Meyby is it possible to make the text lines stretched row horizontally?
My fragment example table:
<p:dataTable id="table" styleClass="table" value="#{userMB.allInactive}" var="inactive" paginator="true" rows="15" rowKey="#{inactive.id}" selection="#{userMB.user}" selectionMode="single" >
<f:facet name="header">
Lista kont nieaktywnych
</f:facet>
<p:column headerText="#{msg.firstName}">
<h:outputText value="#{inactive.firstName}" />
</p:column>
I tried <p:column headerText="#{msg.firstName}" width="20px">
styleClass for column: <p:column styleClass="column" headerText="#{msg.firstName}" width="20px">
.column {
width: 20px;
}
but I do not see any change, it does not work.
© Stack Overflow or respective owner