2 Replies Latest reply on Oct 20, 2010 9:59 AM by marianta

    the buttons of scroller is disabled when the page is disabled

    marianta Newbie

      Hi, i have the next problem.

       

      I have a page with a <rich:dataTable tahts contains a <rich:datascroller. All this is within a component called tablaRich.xhtml

       

      Other page use this component and also it has others components like h:inputText , h:selectOneMenu... each with its attribute disabled.

      No problem yet.

      The problem happen when all component have this atribute disable in true, then the buttons that change the page (next, previous) of datascroller is disabled.

       

      datascroller.bmp

       

      TablaRich.xhtml

       

          <html xmlns="http://www.w3.org/1999/xhtml">
      <ui:component xmlns:ma="http://www.grupomost.com/ma-taglib" 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:c="http://java.sun.com/jstl/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich">
          <rich:dataTable id="tabla_#{id}" value="#{lista}" var="item"
                          headerClass="#{not empty claseTRich? claseTRich:'frTituloTabla'}"
                          rows="#{not empty filas? filas: 5}"
                          cellspacing="0" width="1000px" border="0">
              <c:if test="#{not empty titulo}">
                  <f:facet name="header">
                      <h:outputText value=":: #{titulo}" />
                  </f:facet>
              </c:if>
              <f:facet name="footer">
                  <rich:datascroller id="dataScroller#{id}" for="tabla_#{id}" align="center" maxPages="5"  rendered="#{not empty lista}">  
                  </rich:datascroller>
              </f:facet>
              <ui:insert></ui:insert>
          </rich:dataTable>
      </ui:component>
      </html>

       

      Please if you can help me.