1 Reply Latest reply on Oct 21, 2008 10:25 AM by matthew welch

    extendedDataTable scroller bar

    matthew welch Newbie


      I have noticed that on extendedDataTable there is always an extra column down the right hand side for the vertical scroller bar.

      <rich:extendedDataTable height="200px" value="#{searchBean.results}" var="result" id="table" sortMode="single" selectionMode="single" width="500px">
       <rich:column sortable="false" width="250px">
       <f:facet name="header">
       <h:outputText value="Ref"/>
       <h:outputText value="#{result.ref}"/>
       <rich:column sortable="false" width="250px" >
       <f:facet name="header">
       <h:outputText value="Desc"/>
       <h:outputText value="#{result.desc}"/>

      This example is backed by a collection of 20 objects to produce 20 rows in the table. If I set the height to 200px, I get the scroller bar, which is good.

      However, if I set the height to 600px, I get no scroller bar as all the rows fit on the screen, but I am left with an extra column the width of a scroller bar down the right hand side!

      Does anyone know how I can get rid of this?

      Thanks, m

        • 1. Re: extendedDataTable scroller bar
          matthew welch Newbie

          To further muddy the waters:

          <rich:datascroller align="center" for="edtList"
           page="${searchBean.scrollerPage}" id="sc"
           renderIfSinglePage="false" reRender="edtList" />

          On page 1 of the results the extra column for the scroller bar is shown. If I go to page 2 it renders without the extra column! Clicking back to page 1 shows the column again.


          ps RF 3.2.2-GA/Facelets-1.1.15.B1/JBOSS-4.2.2-GA