4 Replies Latest reply on May 20, 2013 11:17 AM by ibenjes

    rich:dataScroller facet "controlsSeparator" dont work - Richfaces 4.2.2.Final

    geggio447

      Hi all,

      im using RF 4.2.2.Final, and have a problem with rich:dataScroller, particularly with the controlsSeparator facets.

       

      This is my xhtml code:

       

      <rich:dataScroller styleClass="paginatore" for="containerList" rendered="#{not empty containers}" maxPages="5" fastControls="hide" boundaryControls="hide" >

          <f:facet name="controlsSeparator">

              <h:outputText id="sep" value="sep" /> 

          </f:facet>

       

          <f:facet name="previous">

                  <h:outputText value="&#171;" />

          </f:facet>

       

          <f:facet name="next">

             <h:outputText value="&#187;" />   

          </f:facet>

      </rich:dataScroller>

       

       

      When the datascoller is rendered the "previous" and "next" facet are correctly rendered but controlsSeparator does not appear......

       

      I have not found any information about this problem on the web....

       

      Where I went wrong?

       

      Any Idea???

       

      Thanks in advance

        • 1. Re: rich:dataScroller facet "controlsSeparator" dont work - Richfaces 4.2.2.Final
          geggio447

          Any ideas??? Please help me..... why the facet is non rendered? BUG? does not exist in RF4 ? (but it would be strange, because it is mentioned in the documentation)

           

          I need your help please!

          • 2. Re: rich:dataScroller facet "controlsSeparator" dont work - Richfaces 4.2.2.Final
            ramkumarps

            http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_datascroller.html

             

            FacetDescription
            controlsSeparatorRedefines optional separators between controls
            firstRedefines the "first" button with the content set
            first_disabledRedefines the disabled "first" button with the content set
            lastRedefines the "last" button with the content set
            last_disabledRedefines the disabled "last" button with the content set
            fastrewindRedefines the "fastrewind" button with the content set
            fastrewind_disabledRedefines the disabled "fastrewind" button with the content set
            fastforwardRedefines the "fastforward" button with the content set
            fastforward_disabledRedefines the disabled "fastforward" button with the content set
            previousRedefines the "previous" button with the content set
            previous_disabledRedefines the disabled "previous" button with the content set
            nextRedefines the "next" button with the content set
            next_disabledRedefines the disabled "next" button with the content set
            pagesRedefines the pages buttons with the content set

             

            i hope the url can help you better than me 

            • 3. Re: rich:dataScroller facet "controlsSeparator" dont work - Richfaces 4.2.2.Final
              geggio447

              Thanks for your reply,

              I have seen the documentation, and i belive that my facet's sintax is correct.

              Infact in your link is reported:

               

               

              <f:facet name="controlsSeparator">
                        <h:graphicImage value="/image/sep.png"/>
              </f:facet>

               

              I have tryed to enable all controls to show, used in a facet  only graphicImage ... but the result is the same... the Separator is not rendered!

              In RF4 perhaps something has changed?

              Someone has already used this facet (RF4.2.2)? Have you encountered problems in its use?

              • 4. Re: rich:dataScroller facet "controlsSeparator" dont work - Richfaces 4.2.2.Final
                ibenjes

                Have the facets been renamed from 3.3. to 4?

                 

                I have been using this in 3.3:

                <f:facet name="first">

                        <s:span styleClass="icon icon-resultset_first"/>

                        </f:facet>

                         <f:facet name="first_disabled">

                            <s:span styleClass="icon icon-resultset_first greyedOut"/>

                        </f:facet>

                        <f:facet name="fastrewind">

                        <s:span styleClass="icon icon-resultset_previous"/>

                        </f:facet>

                        <f:facet name="fastrewind_disabled">

                            <s:span styleClass="icon icon-resultset_previous greyedOut"/>

                        </f:facet>

                        <f:facet name="fastforward">

                        <s:span styleClass="icon icon-resultset_next"/>

                        </f:facet>

                        <f:facet name="fastforward_disabled">

                            <s:span styleClass="icon icon-resultset_next greyedOut"/>

                        </f:facet>

                        <f:facet name="last">

                        <s:span styleClass="icon icon-resultset_last"/>

                        </f:facet>

                        <f:facet name="last_disabled">

                            <s:span styleClass="icon icon-resultset_last greyedOut"/>

                </f:facet>


                But only first and last is showing correctly. For the other facets the defaults are shown. The Developer Guide doesn't even mention the facets!