3 Replies Latest reply on Apr 5, 2007 6:59 AM by ilya_shaikovsky

    can't get datascroller facets to work...

    henrik.lindberg

      If I try to use the facets of a datascroller I get no output:
      for instance:

      <rich:dataTable..... />
      <rich:dataScroller .....>
       <f:facet name="last">
       <h:outputText value="Last"/>
       </f:facet>
      <rich:dataScroller>
      

      does not work... for each name (first, last, previous, next) that I include a facet, the corresponding button is empty.

      What I really wanted was to put images there.... but now I can't even change the text?!?

      What am I doing wrong? (the datatable and datascroller works without the facets...


        • 1. Re: can't get datascroller facets to work...
          henrik.lindberg

          naturally it is called "datascroller" and not "dataScroller" etc... my mistake when typing the message above - it is correct in my code...

          • 2. Re: can't get datascroller facets to work...
            henrik.lindberg

            Tried it with the latest 3.0.1 snapshot - and that did not work either....

             <rich:datascroller
             for="result_list"
             maxPages="9"
             id="paginator"
             renderIfSinglePage="false"
             >
             <f:facet name="first">
             <h:outputText value="F"/>
             </f:facet>
             <f:facet name="last">
             <h:outputText value="L"/>
             </f:facet>
             <f:facet name="next">
             <h:outputText value="N"/>
             </f:facet>
             <f:facet name="previous" >
             <h:outputText value="P"/>
             </f:facet>
             </rich:datascroller>
            
            produces a very surprising result - the "first" and "last" are not rendered at all, and the "next" and "previous" have the default << and >> text...
            
            confused....
            


            • 3. Re: can't get datascroller facets to work...
              ilya_shaikovsky

              Todays SNAPSHOT:

               <rich:dataTable value="#{capitalsBean.capitals}" var="cap" rows="10">
               <rich:column>
               <h:outputText value="#{cap.name}"></h:outputText>
               </rich:column>
               <f:facet name="footer">
               <rich:datascroller>
               <f:facet name="first">
               <h:outputText value="first"></h:outputText>
               </f:facet>
               <f:facet name="last">
               <h:outputText value="last"></h:outputText>
               </f:facet>
               <f:facet name="next">
               <h:outputText value="N"/>
               </f:facet>
               <f:facet name="previous" >
               <h:outputText value="P"/>
               </f:facet>
               </rich:datascroller>
               </f:facet>
               </rich:dataTable>
              


              produce me on a page all the custom labels I write (all the cases through 'for' attribute and defined in footer).

              So check please your code once again.

              B.t.w. seems like there is another bug http://jira.jboss.com/jira/browse/RF-74. So thanks for your submit.