2 Replies Latest reply on Mar 25, 2010 6:43 AM by Ilya Shaikovsky

    save row state datatable

    odelya yomtov Novice



      I have a rich:datatable with onRowClick:


      <rich:datatable .....>




      <a4j:support action="#{loadedJobsBean.refresh}"
      onsubmit="changeColor(this, #{index})" event="onRowClick"
      <f:param value="#{jobEx.job.id}" name="selectedJobParam" />
      i would like to save which row was clicked. so when the use refreshed the page / go to another page and clicks back it will be colored and the subtable that shows the data according to the row click will be opened as well.
      how can make it performe the action onRowClick of the last row that was chosen?