7 Replies Latest reply on Jan 14, 2010 2:06 PM by Nick Belaevski

    Referencing components by id inside iteration tag

    Piotr Sobczyk Newbie

      We have a problem with rerendering only certain fragments of page inside <a:repeat> or <rich:dataTable>. If we assign identical id to the components we want to rerender, of course an error about non-unique id occurs. But if we put components that need to be rerendered inside <a:outputPanel ajaxRendered="true"> then the components generated by every iteration are rerendered.


      We tried dynamically generating id's, for example


      <s:div id="panel#{rowId}">


      <a:commandButton ... reRender="#panel{rowId}"/>


      However then no components are rerendered. Is there any proven pattern to solve such issues. It seems to be quite basic problem. Thanks in advance.