Skip to content
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: sorting doesn't update header checkbox when checkAllToggler used #3919

Closed
martin654 opened this issue Aug 1, 2018 · 7 comments
Closed
Labels
6.2.8 🐞 defect Bug...Something isn't working
Milestone

Comments

@martin654
Copy link

1) Environment

I have a p:datatable component with
<p:column selectionMode="multiple" style="width:16px;text-align:center"/>
Some rows has their's checkbox disabled using expression in disabledSelection.
I use pagination, so there are pages where no row can be selected.
I also use sorting on some columns.

2) Expected behavior

When all of the row's checkboxes on current page are disabled on page load, then the header checkbox for toggleAll is disabled. When I use sorting and some of the rows are replaced with rows which are NOT disabled, then the toggleAll checkbox should be updated and become ENABLED.

3) Actual behavior

When all of the row's checkboxes on current page are disabled on page load, then the header checkbox for toggleAll is disabled. When I use sorting and some of the rows are replaced with rows which are NOT disabled, then the toggleAll checkbox is NOT enabled.

4) Steps to reproduce

Will provide if necessary. Fix is simple.

5) Sample XHTML

Will provide if necessary. Fix is simple.

6) Sample bean

Will provide if necessary. Fix is simple.

@tandraschko tandraschko added the 🐞 defect Bug...Something isn't working label Aug 1, 2018
martin654 pushed a commit to martin654/primefaces that referenced this issue Aug 1, 2018
@martin654
Copy link
Author

martin654 commented Aug 1, 2018

Fixed here: martin654@e7445de

Created pull request: #3920

@martin654
Copy link
Author

@tandraschko Thomas, could this be merged into next elite version? Thank you

@tandraschko
Copy link
Member

i don't manage elite releases, thats up to @mertsincan

@martin654
Copy link
Author

Ok, I see... How do you manage pull requests? Should I do something more to get the fix it into master?

@tandraschko
Copy link
Member

PRs are for the community version
PrimeTek merges selected PRs then into the private elite branches

tandraschko added a commit that referenced this issue Aug 3, 2018
Fix for #3919 Datatable - sorting doesn't update header checkbox when…
@tandraschko
Copy link
Member

@mertsincan Would you merge it to elite?

@tandraschko tandraschko added this to the 6.3 milestone Aug 3, 2018
@mertsincan
Copy link
Member

Thanks a lot, @tandraschko and @martin654 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.2.8 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants