ExtendedDataTable - height not working

So, as in the title, in my case, the height of the extended DataTable does not work, so my table also does not scroll, because all rows are shown. I am using richfaces4.0-final version. So here is my code snippet:

        <rich:extendedDataTable
            value="#{advancedSearchView.criteria}" var="criteria"
            height="50px"
            selection="#{advancedSearchView.selection}" id="table"
            selectionMode="single">
            <rich:column id="criteria_row" filterBy="#{criteria}" filterEvent="onkeyup" width="500px">
                <h:outputText value="#{criteria}" />
            </rich:column>
        </rich:extendedDataTable>

AdvancedSearchView is the bean request area, and the criteria is an array of strings.

Hope enough information. Thanks in advance. A really would appreciate if someone would give me an answer, because I'm struggling a bit with that.

+5
source share
1 answer

According to the RichFaces 4 VDL documentation (view declaration) , the <rich:extendedDataTable>component does not support the attribute height.

. datatable 50 . , CSS style, CSS styleClass, CSS, , HTML JSF.

, style

<rich:extendedDataTable ... style="height: 50px;">

, styleClass ( , )

<rich:extendedDataTable ... styleClass="criteria">

CSS, <h:outputStylesheet />:

.criteria {
    height: 50px;
}
+3

All Articles