Hi Carl,

> I want to place my datascroller above my datatable - is this possible?
>

Absolutely! :)

Here's my table with datascroller both above and below. Enjoy!

------------------------

<h:panelGrid columns="1" align="center">
<h:panelGroup> <%-- Using this panelGroup forces it to "render its children", allowing scroller to come before table! --%>
        
        <%-- First scroller --%>
<h:panelGrid columns="1" styleClass="scrollerTable" columnClasses="standardTable_ColumnCentered" >
            <t:dataScroller id="scroll_1"
                    for="TheInvoiceReportDataTable"
                    ...
                    >
                <f:facet name="first" >
                    <t:graphicImage url="arrow-first.jpg" border="0" />
                </f:facet>
                ...
            </t:dataScroller>
        </h:panelGrid>

        <%-- The DataTable --%>
        <t:dataTable id="TheInvoiceReportDataTable"
                ...
        >
                <jsp:include page="InvoiceReportTableColumns.jsp" />
        </t:dataTable>

        <%-- Second scroller --%>
<h:panelGrid columns="1" styleClass="scrollerTable" columnClasses="standardTable_ColumnCentered" >
            <t:dataScroller id="scroll_2"
                    for="TheInvoiceReportDataTable"
                    ...
                    >
                <f:facet name="first" >
                    <t:graphicImage url="arrow-first.jpg" border="0" />
                </f:facet>
                ...
            </t:dataScroller>
        </h:panelGrid>
</h:panelGroup>
</h:panelGrid>

------------------------

Regards,

Jeff Bischoff
Kenneth L Kurz & Associates, Inc.

CarlHowarth wrote:
Hello there,

I want to place my datascroller above my datatable - is this possible?

I have added a condition to the scroller that makes sure it only gets
rendered when there are enough rows:

rendered="#{BackingBean.recordCount} > 20}"

When the count does exceed 20 I get the facets appearing but not the page
numbers - if I select one of the facets the numbers appear. If I remove the
rendered property I am immediately presented with an error (could not find
UIData referenced by attribute [EMAIL PROTECTED] = 'dataTableID').

If I place this under my datatable it works fine - is there some way of
getting around this at all please?

Many thanks, Carl






Reply via email to