2 Replies Latest reply on Jan 5, 2009 9:53 AM by Sergey Morenets

    Datalist/datagrid rerender issue

    Sergey Morenets Novice

      I have an issue with datalist/datagrid component being rerendered inside a flow.

      When datalist is rendered first time it successfully displays list of items(countries, for example 9). When I add a country on the separate screen, update items list in a model and return to the initial screen the datalist shows the added item 10 times.

      I put <c:forEach> on the initial screen and it works fine, displaying the correct items after rerender. However datalist/datagrid displays the duplicate items.

       <rich:dataList var="country" value="#{countries}" rows="10">
       <h:outputLink value="directions">
       <f:param name="countryId" value="#{country.id}" />
       <h:outputText value="#{country.name}" />
       <br />

      How you please help to resolve it?