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: Selection Update Bug #7736

Closed
mci-daniel opened this issue Aug 23, 2021 · 2 comments
Closed

Datatable: Selection Update Bug #7736

mci-daniel opened this issue Aug 23, 2021 · 2 comments
Labels
🐞 defect Bug...Something isn't working

Comments

@mci-daniel
Copy link

Describe the defect
I have a lazy datatable (rowSelectMode="multiple", selectionPageOnly="true") inside a dynamic p:dialog.
I open the dialog with a p:commandButton - update="@widgetVar(dialog)", oncomplete="PF('dialog').show()".
The problem is that the selection of the datatable is not updated correctly (the selectionholder doesn't contain the most current selected rowkeys).

e.g.

  • Open the dialog with the table
  • Select 3 entries of the table
  • Close the dialog
  • Remove a selected entry (by clicking some other input component)
  • Open the dialog with the table again (including ajax update of the dialog)
  • The table still has 3 selected entries, instead of 2. The java list which holds the selection contains the expected 2 elements, but the table still shows the "old" selection.

Am I missing something here? The same workflow worked fine with PF8

Environment:

  • PF Version: 10.0
  • JSF + version: Mojarra 2.4.0
  • Affected browsers: ALL
@mci-daniel mci-daniel added the 🐞 defect Bug...Something isn't working label Aug 23, 2021
@mci-daniel mci-daniel changed the title Datatable: Title Datatable: Selection Update Bug Aug 23, 2021
@tandraschko
Copy link
Member

please provide a forked primefaces-test and try 11.0-SNAPSHOT
we already fixed ~50 DataTable bugs since 10.0

@mci-daniel
Copy link
Author

Thanks for the quick reply.

I think this issue is a duplicate of #7391

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

No branches or pull requests

2 participants