Hi,
i use rich:dataGrid and want reRender only the Row where the image was clicked...
how i can do this? any idea?
Here an Example...
<h:form> <rich:dataGrid value="#{videoBean.allVideos}" var="vi" width="600px" styleClass="center" elements="2"> <rich:panel> <f:facet name="header"> <h:outputText value="Video"></h:outputText> </f:facet> <h:panelGrid columns="1" styleClass="center"> <h:graphicImage value="#{vi.img}"> <a4j:support event="onclick" reRender="howreRenderThisRow?" /> </h:graphicImage> <h:outputText value="#{vi.url}" /> </h:panelGrid> </rich:panel> <f:facet name="footer"> <rich:datascroller></rich:datascroller> </f:facet> </rich:dataGrid> </h:form>
you should point reRender to the panel component and use ajaxKeys set fileld with keys of elements from this row. (check please push demo there is dataTable updates but the idea is the same)