GithubHelp home page GithubHelp logo

Comments (10)

melloware avatar melloware commented on June 27, 2024

You are correct. The model of the backing bean has 10 rows. So the Sheet Updates get aligned with those backing bean rows. If 5 new rows are created they don't exist in your backing bean model. Not sure how i will solve this since I can't create new instances of the objects for you I don't think. Have to think about this one.

from primefaces-extensions.

blutorange avatar blutorange commented on June 27, 2024

I can create the objects myself, but that requires I know about the additional rows. Perhaps just creating a SheetUpdate with a null rowkey might work (and SheetUpdate#isNew), but I don't know if a null rowkey would cause issues somewhere else. Alternatively, perhaps a Sheet#getNewlyCreatedRows?

But take your time, I'm sure you can come up with a better way.

from primefaces-extensions.

blutorange avatar blutorange commented on June 27, 2024

This seems to be fixed now. I am now receiving the SheetUpdates for the newly added rows. Looking at the commit history, I suppose this is due to the update to HandsonTable 5.0 (#590).

from primefaces-extensions.

melloware avatar melloware commented on June 27, 2024

Awesome I will close for now!

from primefaces-extensions.

blutorange avatar blutorange commented on June 27, 2024

Hmm, I'm not sure what I've been seeing, but unfortunately, it seems the updates are still not sent to the server. Would be great if you could take a look at it when you've got time.

If it helps, the use case is a simple generic CSV editor where the user can copy&paste data into the sheet.

from primefaces-extensions.

melloware avatar melloware commented on June 27, 2024

I reopened the issue. Will investigate when I can.

from primefaces-extensions.

melloware avatar melloware commented on June 27, 2024

I believe this Stack Overflow user has the same issue: https://stackoverflow.com/questions/60191691/how-to-access-pasted-rows-in-primefaces-extensions-sheet

from primefaces-extensions.

melloware avatar melloware commented on June 27, 2024

This one is definitely messy. I took a deeper dive and without RowKey it then fails the validate step etc. I think this would have to be fixed in many many places for it to work and pass down into SheetUpdates. Was hoping it was going to be simple.

from primefaces-extensions.

blutorange avatar blutorange commented on June 27, 2024

Yeah, though I think the real issue for us is that (as far as I heard) the sheet component was developed as an alternative for DataTable with a mostly fixed column schema. We're kinda using the sheet as a general excel / CSV editor and it really shows the sheet wasn't developed with that usage in mind.

from primefaces-extensions.

github-actions avatar github-actions commented on June 27, 2024

This issue is marked as stale because there was no activity on it for the last 2 years. Remove stale label or comment or this will be closed in 30 days

from primefaces-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.