I do not know if there is anything specific with styling JSF datatable but I can not get the row height changed.
Here is my datatable:
<h:dataTable value="#{myBean.myValue}"
rowClasses="dt_row"
var="o">
</h:dataTable>
Here is my css dt_row class:
.dt_row {
height: 10px;
}
But when the rows is generated the height remains the same no matter what values I specify in my css class. The source of generated page looks like this and it seems ok:
<tr class="dt_row">
Any ideas?
Here is my whole table:
<h:dataTable value="#{searchBean.searchResult.concordances}"
styleClass="table"
var="concordance">
<h:column>
<pre>#{concordance.left}</pre>
</h:column>
<h:column>
<pre style="color: blue;">#{concordance.middle}</pre>
</h:column>
<h:column>
<pre>#{concordance.right}</pre>
</h:column>
</h:dataTable>