title: Ask delete confirmation only on last row
body: <p>In my JSF application I have to delete rows from an employee table with other details. I am able to delete rows in the view, but I want to have a delete confirmation dialogue only on the last row deletion. </p>
  
  <p>I have implemented it using JavaScript, but it pops up for every delete. </p>
  
  <p>Now, I want it only for last row, I can check if it is last row through managed bean, but how this can be implemented in the view?</p>