5 Replies Latest reply on Jan 7, 2008 1:03 PM by sergeysmirnov

    datatable reRender problem.

    pointer

      hello.
      I have one datatable and datascroller in the page, with each row have a commend link component which is used to delete row. I want to use the actionListener property, since if using action property which will refresh the whole page and set the datascroller page to one, but it can't render the datatable althought the selected row have beed delete.

      Code is as below. Thank you and sorry for my english.

      <a4j:keepAlive beanName="personList"/>
      <a4j:form ajaxSubmit="true" reRender="pagePanel">
       <a4j:outputPanel id="pagePanel" ajaxRender="true">
       <rich:datascroller for="personList" maxPages="5" binding="#{personList.datascroller}" boundaryControls="show" />
       <rich:dataTable id="personList" value="#{personList.dataModel}" var="item" rows="2" width="100%" first="0">
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText styleClass="headerText" value="Id" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="Name" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="registerTime" />
       </h:column>
       <h:column>
       <h:outputText styleClass="headerText" value="delete" />
       </h:column>
       </rich:columnGroup>
       </f:facet>
       <h:column>
       <rich:toolTip event="onclick" followMouse="true" direction="top-right" delay="500" mode="ajax" layout="block">
       <f:facet name="defaultContent">
       <h:graphicImage url="/images/connect_active.gif"></h:graphicImage>
       </f:facet>
       <h:outputText value="#{item.name}"/>
       </rich:toolTip>
      
       <h:outputText value="#{item.id}"></h:outputText>
       </h:column>
       <h:column>
       <h:outputText value="#{item.name}"></h:outputText>
       </h:column>
       <h:column>
       <h:outputText value="#{item.registerTime}"></h:outputText>
       </h:column>
       <h:column>
       <a4j:commandLink actionListener="#{personList.delete}" reRender="pagePanel">
       <h:outputText value="Delete" />
       </a4j:commandLink>
       </h:column>
      
       </rich:dataTable>
       </a4j:outputPanel>
       </a4j:form>