In the 2.2.M1 DataTable, cancel edit doesn't always work.
To reproduce:
- Go here: http://www.primefaces.org/showcase/ui/d ... diting.jsf.
- Put any two rows in edit mode.
- Change the manufacturer in both of these rows to a new value.
- Save one of the rows.
- Cancel the edit to the other row. This doesn't work. The new value for the manufacturer is displayed, not the old value.
When a single row is saved, the data from all rows is posted back to the server and updated in the model. Only the data from the row that is being saved should be updated in the model.
DataTable - Cancel edit doesn't always work
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, I'm aware of this issue, data is processed as a whole not row based, something to improve in 2.2.RC1.
Created issue: http://code.google.com/p/primefaces/iss ... il?id=1280
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Cool Harry, thx!
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Should be fixed now.
çok güzel (http://translate.google.de/#tr|en|%C3%A7ok%20g%C3%BCzel)
Wow, the modification required to fix this was amazingly tiny! Here is is in all its glory http://code.google.com/p/primefaces/sou ... ail?r=3570
Wow, the modification required to fix this was amazingly tiny! Here is is in all its glory http://code.google.com/p/primefaces/sou ... ail?r=3570
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, thanks to JSF 2, things are much easier to create.
- bumble.bee
- Posts: 723
- Joined: 29 Sep 2010, 21:39
- Location: United States
Thanks for fixing this.
I actually started to like the idea of an edit-all (with save-all / cancel-all). The controls could perhaps be located in the column header or footer as an optional edit-all facet? Maybe a future enhancement?
I actually started to like the idea of an edit-all (with save-all / cancel-all). The controls could perhaps be located in the column header or footer as an optional edit-all facet? Maybe a future enhancement?
- bumble.bee
- Posts: 723
- Joined: 29 Sep 2010, 21:39
- Location: United States
I showed the customer a preview last week and they said "hey, I like being able to save all rows at once." I said, "yeah, that's a feature that is totally there on purpose"!
Obviously it wasn't fully implemented though because it didn't close all rows open for editing when you saved and you had to click each row indivdually to open it for editing, etc.
Oh well...
Obviously it wasn't fully implemented though because it didn't close all rows open for editing when you saved and you had to click each row indivdually to open it for editing, etc.
Oh well...
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests