Hi all,
I am new to
JSF .In my application I am using <h:dataTable> to populate a dynamic table .I have two columns "NUMBER" and "NAME".I am using the following Code ---
<h:dataTable id="dt1" value="#synergyCustomerManagementBeanHandle.result}" var="item" border="1" cellpadding="0" cellspacing="0" width="100%" bgcolor="white" >
<h:column >
<f:facet name="header" >
<h:outputText value="Number" />
</f:facet>
<h:outputText value="#{item.number}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{item.name}"></h:outputText>
</h:column>
</h:dataTable>
NOw The problem is both the column taking the same space .but i want that the size of the two column will be 20%(NUMBER) and 80%(NAME). but how to do that because
<h:column>,<f:facet> nothing cotains property like width .
How can I do this kind of alignment?
Thanks in Advance.