3 Replies Latest reply on Apr 9, 2009 7:27 AM by ilya_shaikovsky

    update rowkey?

    nimo22

      I have a contextMenu and a rich:extendedDatatable..all works.

      I have a menuItem:

      <rich:menuItem value="Change" ajaxSingle="true" action="#{myBean.change(row)}" reRender="showRows"/>


      <rich:extendedDataTable id="showRows" ...>
      </rich:extendedDataTable>



      How can I reRender only the row, which was changed instead of all rows (the whole datatable) ?? Is it possible?




        • 1. Re: update rowkey?
          ilya_shaikovsky

          Yes concrete cells reRendering could be implemented for our data iteration components. Read about ajaxKeys attribute for data components. Also please check a4j:repeat richfaces-demo page.

          • 2. Re: update rowkey?
            nimo22

            I have a one questions about

            ajaxKeys="#{listBean.list}"


            listBean.list must be a Set containing only Strings (am I right?).
            What Strings should I take? Strings from my Objects or ID's ?

            I have no ID for my rows, only for my columns:


            <rich:column id="rowID">
            </rich:column>




            • 3. Re: update rowkey?
              ilya_shaikovsky

              It should be filled with rowKeys. Just simple Integers by default.

              Please visit the link in my signature and checkout the sources for richfaces-demo in order to check how it works.