New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable: Pre selected disabled rows are dismissed on serverside #11356
Comments
This is the same issue right? Disabled rows are being ignored on the server side submit just like normal HTML checkbox behavior correct? |
Yeah is the same, just wanted to create a new one because the other one is allready closed. |
cc @Rapster @christophs78 @tandraschko @jepsar we need to discuss and decide what to do here. Summary: When you use @pfumi would like that if he marks something selected on the backend that it shows up Selected AND Disabled on the UI (which it does). But when he submits those disabled records are being unchecked because of #9552. So we need to decide what to do here but we cannot satisfy both scenarios I don't think. And my two cents is the current behavior is correct. |
The current behavior is the right one, there is a very simple reason as of why there is this For your issue, every time you submitted your action, remember to add the disabled items to the list you want before you call your action |
Describe the bug
If a DataTable is submitted with a disabled row which is checked, then the selection on serverside is updated and dismisses the disabled checked row.
There were multiple issues with disabled rows in DataTable, some were fixed here #11290. One still persists, see my comment here #11290 (comment)
Reproducer
Expected behavior
All checked rows, either disabled or not, should be kept in the selection list on serverside.
PrimeFaces edition
Community, Elite
PrimeFaces version
14.0.0-SNAPSHOT, 13.0.4
Theme
No response
JSF implementation
Mojarra
JSF version
2.2
Java version
8
Browser(s)
No response
The text was updated successfully, but these errors were encountered: