7 Replies Latest reply on May 23, 2007 10:06 AM by kjhkjh kjhkjhkjhkj

    Datascroller before datatable, doesnt working

    kjhkjh kjhkjhkjhkj Newbie

      Hello People,
      How are you?

      Im having some troubles trying to put rich:datascroller before rich:datatable, the component isnt reRendered, but when I update the page (F5), the component refreshs it self.

      In Jira I've found that sorrounding by outputPanel, should work, but I cant make it.

      Do you have some tip for that, I've tried with and without panels.

      Thanks

       <a4j:form id="pesquisa">
      
       <a4j:outputPanel id="test">
       <rich:panel styleClass="espaco-top">
       <f:facet name="header">
       <img src="#{msg['img.pesquisar']}"/> Pesquisar
       </f:facet>
      
       <h:inputText id="pesquisa"></h:inputText>
       <a4j:commandButton action="#{documentoBean.pesquisar}" value="Pesquisar" reRender="test, panelscroll, paneltable" onclick="abrir()" oncomplete="fechar()" />
       <h:commandLink value="Pesquisa Avançada"></h:commandLink>
       </rich:panel>
       </a4j:outputPanel>
      
      
      
      
       <p><b>Resultado da Pesquisa:</b></p>
      
      
       <a4j:outputPanel id="panelscroll">
       <rich:datascroller id="scrolldocumento" stepControls="hide" for="tabeladocumento" maxPages="20" tableStyleClass="centralizar" />
       </a4j:outputPanel>
      
       <rich:spacer height="20" />
      
      
      
      
       <a4j:outputPanel id="paneltable">
       <rich:dataTable width="100%" id="tabeladocumento" rows="10" columnClasses="col"
       value="#{documentoBean.tabeladocumentos}" var="documento" style="background-color:#F3FFFD;">
      
      
       <f:facet name="header">
      
      
      
       <rich:columnGroup>
       <h:column>
       <h:outputText styleClass="headerText" value="Documento" />
       </h:column>
      
       <h:column >
       <h:outputText styleClass="headerText" value=" " />
       </h:column>
      
       </rich:columnGroup>
       </f:facet>
      
      
      
       <h:column>
       <div class="documento">
       <h:commandLink action="#{documentoBean.consultartabela}">
       <h:outputText value="#{documento.descricao}"/>
       <f:param name="operacao" value="consultar"/>
       </h:commandLink>
       </div>
       <span class="detalhedocumento">
       <b>Ano:</b><i>#{documento.ano}</i>; <b>Tipo de Documento:</b><i><h:outputText value="#{documento.tipodocumento.descricao}"/></i>;
       <b>Descritor:</b>
       <ui:repeat value="#{documentoBean.descritores}" var="documentodescritor">
       </ui:repeat>
       <br/><br/>
       </span>
       </h:column>
      
       <h:column >
       <h:commandLink action="#{documentoBean.consultartabela}">
       <img src="/Sai/images/ico_editar.gif"/>
       <f:param name="operacao" value="editar"/>
       </h:commandLink>
      
       <h:commandLink action="#{documentoBean.consultartabela}">
       <img src="/Sai/images/ico_excluir.gif"/>
       <f:param name="operacao" value="consultar"/>
       </h:commandLink>
       </h:column>
       </rich:dataTable>
       </a4j:outputPanel>
      
       </a4j:form>