1 Reply Latest reply on Aug 8, 2007 4:53 AM by ilya_shaikovsky

    Issue with reRendering

    vcharak01

      I am using richfaces table and have some input fields with ADD button. On click of add button , data gets added to the database and then the reRender attribute is supposed to paint my richfaces table. This is not happening. I verified and there are No error on the server side and no errors on the client side. Infact if I remove a4j command button and h:command button, table starts repainting and hence I can see new row each time add is pressed. But that means the whole of page is getting re-generated. Following is part of my code. Any help is appreciated.
      I am using ajax4jsf-1.1.1.jar.


      <a4j:outputPanel id="listpnl" >
      <rich:dataTable width="483" id="list" rows="10" columnClasses="col" value="#{DataBean.dataList}" var="data">
      <f:facet name="header">
      <rich:columnGroup>
      <h:column>
      <h:outputText styleClass="headerText" value="Date" />
      </h:column>
      <h:column>
      <h:outputText styleClass="headerText" value="Quantity" />
      </h:column>
      </rich:columnGroup>
      </f:facet>

      <h:column>
      <h:outputText value="#{data.startDate}" >
      <f:convertDateTime pattern="MM/dd/yyyy"/>
      </h:outputText>
      </h:column>
      <h:column>
      <h:outputText value="#{data.quantity}" />
      </h:column>
      </rich:dataTable>

      <rich:datascroller align="left" id="listscroller" for="list" maxPages="20" />
      </a4j:outputPanel>


      Quantity
      <h:inputText id="quantity" maxlength="10" size="15"value="#{DataBean.quantity}" />

      Start Date
      <h:inputText id="startdate"
      maxlength="10" size="15" value="#{DataBean.startDate}" >
      <f:convertDateTime pattern="MM/dd/yyyy" />
      </h:inputText>


      <a4j:commandButton reRender="listpnl" id="addbutton" actionListener="#{DataBean.add}" image="images/add-button.gif" alt="Add" >
      </a4j:commandButton>