.col1{
width:50px;
text-align:center;
}
.col2{
width:150px;
}
.col3{
width:150px;
overflow:hidden;
}
.col4{
width:100px;
}
.col5{
width:100px;
}
.col6{
width:150px;
}
.col7{
width:50px;
}
.col8{
width:50px;
}
<rich:dataTable id="carList" rows="10"
value="#{reqList.reqList}" var="req" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
columnClasses="col1,col2,col3,col4,col5,col6,col7,col8" width="720">
<f:facet name="header">
<rich:columnGroup>
<rich:column headerClass="col1">
<h:outputText styleClass="headerText" value="??" />
</rich:column>
<rich:column headerClass="col2">
<h:outputText styleClass="headerText" value="???" />
</rich:column>
<rich:column headerClass="col3">
<h:outputText styleClass="headerText" value="???" />
</rich:column>
<rich:column headerClass="col4">
<h:outputText styleClass="headerText" value="???" />
</rich:column>
<rich:column headerClass="col5">
<h:outputText styleClass="headerText" value="???" />
</rich:column>
<rich:column headerClass="col6">
<h:outputText styleClass="headerText" value="????" />
</rich:column>
<rich:column headerClass="col7">
<h:outputText styleClass="headerText" value="?????" />
</rich:column>
<rich:column headerClass="col8">
<h:outputText styleClass="headerText" value="???" />
</rich:column>
</rich:columnGroup>
</f:facet>
problem windows XP2 in IE 6.0.29
No1 I want to set the width of columns,but the css doesnt work,is there some bug in the code above?
No2 if the data is very long and i dont want it to change lines,how cab i to
set it?
No3 the some td hasnt data,the td hasnt border.how to set the border if there isnt data in the td
Tanks for your help
Use columnsWidth attribute in dataTable.