1 Reply Latest reply on Feb 16, 2007 4:17 PM by James Hays

    datatable error....

    Waheed murad Newbie

      well i have my datatable binded to the DataModel and DataModelSelection. let me explain my problem through example plz .....

      my datatable first shows the followinf record when i load the page...

      1
      2
      3
      4
      5

      i delete the record 1 and have on my page

      2
      3
      4
      5

      now i press the back button of browser and have:

      1
      2
      3
      4
      5

      know if i delete 1 again what happens is next record is deleted. i.e. i have

      3
      4
      5

      i have also passed the id along the action method ,as shown below, but
      it also displays the id of the next record.

      <h:commandButton value="Delete" action="#{MyClassAction.deleteRecord(record.id)}" />