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

    Issue with reRendering

    Vikas C Newbie

      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">
      <h:outputText styleClass="headerText" value="Date" />
      <h:outputText styleClass="headerText" value="Quantity" />

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

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

      <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" />

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