9 Replies Latest reply on Jul 14, 2009 6:47 AM by ilya_shaikovsky

    rich:scrollableDataTable rows height

    svande

      Hallo forum,

      I use the rich:scrollableDataTable rows attribute.
      Unfortunately the table does not call the right indexStart and numRows when scrolling.
      I end up with an empty space under the column headers, above the rows. And not all records are shown, the last one is missing.
      Is this a common problem?
      Are there limitations on style sheet use?

      Thanks for any hints,

      Wilfred

        • 1. Re: rich:scrollableDataTable rows height
          ilya_shaikovsky

          check please 3.3.2 version from the beggining. And share please code and screenshot with a problem.

          • 2. Re: rich:scrollableDataTable rows height
            svande

            Hallo Ilya,

            I upgraded to latest 3.3.2.

            Here is a screenshot:
            http://img88.imageshack.us/i/spaceaboverows.jpg

            [URL=http://img88.imageshack.us/i/spaceaboverows.jpg/][IMG]http://img88.imageshack.us/img88/4691/spaceaboverows.th.jpg[/IMG][/URL]

            The space above the rows occurs after scrolling down and then back up again.

            The last info on the commandline is:

            Getting list for ProcessedFilesReport from Dao with range '1,2'.


            Whereas the first call starts from the desired '0'.
            Getting list for ProcessedFilesReport from Dao with range '0,15'.


            The table has the following code:
            <ui:composition xmlns="http://www.w3.org/1999/xhtml"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:rich="http://richfaces.org/rich"
             xmlns:a4j="http://richfaces.org/a4j">
            
             <div class="results">
             <h:outputText value="#{processedfilesLabels['tableHint']}"/>
             <a4j:form>
             <a4j:jsFunction name="onPFSelectionChange" action="#{processedFilesReport.onSelectionChange}"/>
             <rich:scrollableDataTable id="processedFilesTable"
             value="#{processedFilesReportExtendedDataModel}"
             var="file"
             width="750px" height="400px"
             rows="#{processedFilesReportExtendedDataModel.getMaxRows(15)}"
             sortOrder="#{processedFilesReportExtendedDataModel.sortOrder}"
             selection="#{processedFilesReport.selection}"
             onselectionchange="onPFSelectionChange();"
             binding="#{processedFilesReport.table}"
             process="processedFilesTable"
             reRender="processedFilesTable"
             frozenColCount="1"
             eventsQueue="processedFilesTable"
             ignoreDupResponses="true">
            [/url]

            • 3. Re: rich:scrollableDataTable rows height
              ilya_shaikovsky

              processedFilesReport scope?

              • 4. Re: rich:scrollableDataTable rows height
                svande

                Hi Ilya,

                I have been looking at the AJAX requests:
                The values that are POST-ed do correspond with what is shown in the logs.
                Firebug:

                processedFilesTable:si 0,1,16,14,14
                processedFilesTable_rows_input 45
                processedFilesTable_state_input 13,1,1


                It is the state_input that is erratic.

                What determines the state_input?

                When scrolling back up it does not fetch the first row and when scrolling down it does not fetch enough rows.

                Do you have any other idea?

                Regards,

                Wilfred

                • 5. Re: rich:scrollableDataTable rows height
                  svande
                  • 6. Re: rich:scrollableDataTable rows height
                    svande

                    Hello guys,

                    The CSS attribute 'top: 275px;' is not correct.

                    <table id="modalPanelPlaceHolder2:j_id401:tab2page:j_id1177:processedFilesTable:n" cellspacing="0" cellpadding="0" style="border-collapse: collapse; position: absolute; left: 0px; top: 275px;">


                    Anything I can do about it?

                    Regards,

                    Wilfred

                    • 7. Re: rich:scrollableDataTable rows height
                      svande

                      a4j:log shows:

                      warn[18:01:34,678]: Start loading: index: 16, and startRow: 1, and count: 10



                      • 8. Re: rich:scrollableDataTable rows height
                        svande

                        Dear Richfaces developers,

                        I have reduced the code to a very simple page.
                        But the table offset remains wrong after scrolling in FF and IE when using the rows attribute.

                        The simple code is:

                        <f:view contentType="text/html" xmlns="http://www.w3.org/1999/xhtml"
                         xmlns:ui="http://java.sun.com/jsf/facelets"
                         xmlns:h="http://java.sun.com/jsf/html"
                         xmlns:f="http://java.sun.com/jsf/core"
                         xmlns:a4j="http://richfaces.org/a4j"
                         xmlns:rich="http://richfaces.org/rich"
                         xmlns:s="http://jboss.com/products/seam/taglib">
                         <h:form>
                         <rich:scrollableDataTable id="processedFilesTable"
                         value="#{processedFilesReportExtendedDataModel}"
                         var="file"
                         rows="10">
                         <rich:column id="name" width="300px">
                         <f:facet name="header"><h:outputText value="#{processedfilesLabels['pfheader.name']}"/></f:facet>
                         <h:outputText value="#{file.name}"/>
                         </rich:column>
                         </rich:scrollableDataTable>
                         </h:form>
                        </f:view>
                        


                        Hopefully someone can confirm there is a bug here?

                        Regards,

                        Wilfred

                        • 9. Re: rich:scrollableDataTable rows height
                          ilya_shaikovsky

                          finally got the point and can't confirm this as an issue. This is not an extra space but previous row piece. table scrolls smoothly not row by row.