2

I want to access the rows of a PrimeFaces Extensions Sheet, after I have pasted data from an excel sheet into it. Ideally, I want to iterate through the rows of the sheet that contain data (as the values in the row should make up one object).

I have tried using this statement List<SheetUpdate> updates = sheet.getUpdates(); intending to iterate through it to access the row data with update.getNewValue(); , but updates is always empty even if ajax detects the change (paste action).

Could you suggest a way to access a specific row of a PrimeFaces Extensions Sheet?

Melloware
  • 10,435
  • 2
  • 32
  • 62
agimus
  • 33
  • 4
  • Is your issue similar to this reported issue? https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/588 – Melloware Feb 12 '20 at 16:30
  • @Melloware not quite actually, since `updates` is always empty no matter where I paste the data. No new rows are created when this problem occurs. Is `getUpdates()` the only approach to access the rows? – agimus Feb 13 '20 at 09:09
  • Hmmm i am not sure I have never had this use case in any of my production code. If you debug it let me know if there is anything I can fix in the component. – Melloware Feb 13 '20 at 12:03

0 Answers0