You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue upgrading from PrimeFace 8 to PrimeFaces 11 when including a required text input inside of a p:rowExpander (itself inside of a p:dataTable) that is expanded via satisfying the EL condition given by the p:dataTable's expandedRow attribute.
Expected behavior: When intentionally not supplying a value for the required text input and submitting the form via p:commandButton click, I expect to see "text input failed validation: text input required" messaging.
Observed behavior: On the first click of the p:commandButton, nothing happens on the page. Via browser console, I can see that there is a network request and response, but again, on the page there is no observable change. Clicking the p:commandButton a second time yields the expected "text input failed validation: text input required" messaging in the view. If it's helpful, this issue does not present itself with PrimeFaces 8.
Steps to reproduce: I've attached a modified version of the prime faces-test project (as a *.tar.gz file). Build and run this project. On the expanded row in the datable (the row for "Data2"), intentionally leave the p:textInputarea blank and click the "Update" button. Observe that nothing happens. Click the "Update" button a second time and observe the expected "Validation Error: Value is required" messaging.
Just to say it, if you remove the expandedRow attribute from the p:dataTable and rebuild the project, expanding the "Data2" row manually and clicking the "Update" button with a blank p:textInputarea, gives the expected failed validation messaging on the first click (making the expandedRow attribute the culprit).
Please let me know if I can provide any additional information.
melloware
changed the title
Defect for input validation inside row-expander when p:dataTable expandedRow attribute is used.
Datatable: Input validation inside row-expander when expandedRow attribute
Jan 21, 2022
Hi - I've attached a simplified example that sees the "failed UI validation on first click" bug eliminated based on whether or not the data table is enclosed in an outer form (bug occurs) or if the form is placed inside the row expansion (bug does not occur). Any ideas on what would cause this behavior? I'm exploring whether or not the affected view in my project can be refactored to move the form from outside the data table to inside, but there are some other UI input dependencies outside of those contained in the data table that make this difficult. primefaces-rowexpansion-bug-simple.tar.gz
Hi,
I've encountered an issue upgrading from PrimeFace 8 to PrimeFaces 11 when including a required text input inside of a p:rowExpander (itself inside of a p:dataTable) that is expanded via satisfying the EL condition given by the p:dataTable's expandedRow attribute.
Expected behavior: When intentionally not supplying a value for the required text input and submitting the form via p:commandButton click, I expect to see "text input failed validation: text input required" messaging.
Observed behavior: On the first click of the p:commandButton, nothing happens on the page. Via browser console, I can see that there is a network request and response, but again, on the page there is no observable change. Clicking the p:commandButton a second time yields the expected "text input failed validation: text input required" messaging in the view. If it's helpful, this issue does not present itself with PrimeFaces 8.
Steps to reproduce: I've attached a modified version of the prime faces-test project (as a *.tar.gz file). Build and run this project. On the expanded row in the datable (the row for "Data2"), intentionally leave the p:textInputarea blank and click the "Update" button. Observe that nothing happens. Click the "Update" button a second time and observe the expected "Validation Error: Value is required" messaging.
Just to say it, if you remove the expandedRow attribute from the p:dataTable and rebuild the project, expanding the "Data2" row manually and clicking the "Update" button with a blank p:textInputarea, gives the expected failed validation messaging on the first click (making the expandedRow attribute the culprit).
Please let me know if I can provide any additional information.
Thanks,
-Andy
primefaces-rowexpansion-bug.tar.gz
The text was updated successfully, but these errors were encountered: