0 Replies Latest reply on Jan 25, 2008 9:23 AM by Ralf

    reRender DataTable inputText

    Ralf Newbie

      I spend the whole day trying to find a solution.
      I have a rather common case...a dataTable with input fields
      and a button to add a new row.
      What happens is that the row is added, but the text in the
      input field is empty. How can I keep the value?

       <rich:dataTable var="data" value="#{invoice.itemList}"
       rowKeyVar="rowIndex" binding="#{invoice.dataTable}">
       <f:facet name="header">
       <h:outputText value="#{msg.invoiceItem_table_header}" />
       <rich:column width="18px" sortable="false">
       <f:facet name="header">
       <rich:spacer />
       <a4j:commandButton id="delete" actionListener="#{invoice.deleteLine}"
       image="/app/images/delete.gif" alt="#{msg.global_button_alt_delete}"
       reRender="itemTable" immediate="true" rendered="#{rowIndex > 0}"
       ajaxSingle="false" >
       <f:param id="rowIndexDeleteId" name="rowIndex" value="#{rowIndex}" />
       <rich:spacer />
       <f:facet name="header">
       <h:outputText value="#{msg.invoiceItem_text}" />
       <h:inputTextarea value="#{data.text}"