Comments (10)
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.
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.
This seems to be fixed now. I am now receiving the SheetUpdate
s 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.
Awesome I will close for now!
from primefaces-extensions.
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.
I reopened the issue. Will investigate when I can.
from primefaces-extensions.
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.
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.
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.
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)
- ClockPicker: TODO List HOT 16
- ThemeAccentColorResource is not finding accent color anymore HOT 3
- New component: Apache EChart HOT 8
- New component: OTP / PIN input HOT 2
- SunEditor: Allow Untouched HTML Option HOT 3
- Document Viewer: Default Download Name if StreamedContent Name is null
- InputOtp: Remaining Features HOT 2
- InputPhone: Not respecting inputStyleClass
- New Component: Markdown Editor HOT 7
- KeyNote: Update Reveal.js HOT 1
- InputPhone: intl-tel-input 20.0.4 Breaking Changes HOT 1
- Core: Refactor minification
- SunEditor: Edit Link not working when inside Dialog HOT 5
- Layout: errors while using CSP and MOVE_SCRIPTS_TO_BOTTOM at the same time HOT 7
- InputPlace: Support Azure Maps API HOT 1
- SunEditor: 2.46.0
- InputPhone: Upgrade to v21.2.6+ HOT 8
- MorphiaLazyDataModel: Allow user to specify FindOptions and CountOptions
- Sheet: Context Menu Doesn't Display After Sheet Update HOT 8
- InputPlace: Autocomplete list hidden behind a dialog
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from primefaces-extensions.