1 Reply Latest reply on Jan 7, 2009 7:37 AM by Nick Belaevski

    how to rerender one table row

    Dmitri Ilyin Newbie


      i have a dataTable. In one column i have a inplaceInput. I'd like to send a request after editing with this inplace editor and rerender only the edited row.

      Here is my code so far.

       <rich:dataTable id="dtTable" var="discreteTask"
       value="#{displayableTestBean.dataModel}" rows="15">
       <rich:column >
       <f:facet name="header">
       <h:outputText value="#{msg_m.catDiscreteTasks$tableCol1}" />
       <h:outputText value="#{discreteTask.number}" />
       <rich:column >
       <f:facet name="header">
       <h:outputText value="#{msg_m.catDiscreteTasks$tableCol2}" />
       <rich:inplaceInput value="#{discreteTask.description}"
       layout="block" immediate="true" id="inplaceDesc" required="true"
       selectOnEdit="true" editEvent="ondblclick">
       <a4j:support event="onviewactivated" reRender="dtTable"/>
       <rich:toolTip mode="client" for="inplaceDesc" followMouse="true">
       value="#{msg_m.catDiscreteTasks$descriptionDefaultLabel}" />
       <f:facet name="footer">
       <rich:datascroller id="dtDataScroller" renderIfSinglePage="false"
       selectedStyle="font-weight:bold" boundaryControls="auto">

      rerender of the hole table works just fine. But i don't like to send all the rows again, just only one. Is it posible?

      thank you