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

    how to rerender one table row

    Dmitri Ilyin Newbie

      Hi,

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


      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
      regards
      Dmitri