When using h:dataTable, cells enlarge vertically depending upon # of rows

I am using h:datateble with styleClass="searchDataTable" and in my CSS i have defined

.searchDataTable

{

width: 900px;

height: 360px;

}

With these dimensions if i have 10 or more rows, dataTable looks fine.

But if i have two or three rows only, then every row cell is 5 times taller then it should. In other words every cell enlarges vertically. Regardless of the number of rows i want to have the fix height for every cell in the row. How can i accomplish this?

Thank you for your help

[543 byte] By [learningjava5a] at [2007-11-27 10:52:32]
# 1

Just leave the height attribute away?

BalusCa at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I have a submit button at the bottom of table. If i don't give the table height a specific value then that button appears at different location on the page.

For example, if the data table retrieves 15 rows then the submit button appears at the bottom-left end of page. And If the data table retrieves 3 rows then the submit button appears at the center-left of the page.

When implementing this UI for my project, It is required that the submit button should appear at the bottom-left of the page.

Any more suggestions?

learningjava5a at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Wrap the table with a div element of fixed size.

BalusCa at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

I tried and that did not work. This is the section of code.

<t:div style="width:900px height:380px">

<t:dataTable id="dtbsearchResult"

></t:dataTable>

</t:div>

Any other clues?

learningjava5a at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

You have a typo in style attribute; you need a semi-colon separating the CSS attributes.

RaymondDeCampoa at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

Thank you for your help its working now

learningjava5a at 2007-7-29 11:38:07 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...