-------------------------------------------
Code: Select all
------------------------------------------------------
// Below code is ok, but not nice:
<p:dataTable style="width:800px" ...>
<p:column style="width:120px">
<f:facet name="header">
<h:outputText value="#{msgs.customer_customerId}" />
</f:facet>
<h:outputText value="#{customer.customerId}" />
</p:column>
<p:column style="width:120px">
<f:facet name="header">
<h:outputText value="#{msgs.customer_customerTypeId}" />
</f:facet>
<h:outputText id="customerTypeId_" value="#{customer.customertype.name}" />
</p:column>
...
</p:dataTable>
------------------------------------------------------
// Below code not work! why not?!
<p:dataTable style="width:80%" ...>
<p:column style="width:15%">
<f:facet name="header">...</f:facet>
...
</p:column>
<p:column style="width:15%">
<f:facet name="header">...</f:facet>
...
</p:column>
......
</p:dataTable>