0 Replies Latest reply on Sep 28, 2011 11:22 AM by fmt

    rich:dataScroller pageIndexVar and pagesVar still available in RF 4?

    fmt

      Hi,

       

      I'm using Richfaces-4.1.0M2.

       

      I wanted to customize the appearance of my scroller (hide the first facet when on the first page for exemple).

      I tried with "first_disabled" facet, but it doesn't seem to be available or doing anything, the "first" facet is always used.

       

      I tried with the pageIndexVar and pagesVar which were available in RF-3.3. But I get nothing when discplaying this variables, so it doesn't seems to be available either ?

       

      Are these features available or am I doing something wrong ? How can I doo this with the current scroller version ?

       

      {code:xml}<rich:dataScroller id="scrollerId" maxPages="5" pageIndexVar="pageIndex" pagesVar="pages"

      renderIfSinglePage="true" boundaryControls="show" fastControls="hide" stepControls="hide">

      <f:facet name="first">

      <h:outputText value="firstLabel" rendered="#{pageIndex > 1}" />

      </f:facet>

      <f:facet name="last">

      <h:outputText value="lastLabel #{pageIndex} / #{pages}" />

      </f:facet>

      <f:facet name="next"> </f:facet>

      <f:facet name="previous"> </f:facet>

      <f:facet name="first_disabled"> </f:facet>

      <f:facet name="last_disabled"> </f:facet>

      </rich:dataScroller>{code}

       

      Thanks in advance,

      Rgds,

      Florian