Skip to content

WICKET-7159 - Remove isEnabledInHierarchy condition from validate Form #1186

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

Merged

Conversation

mira-silhavy
Copy link
Contributor

https://issues.apache.org/jira/browse/WICKET-7159

Reverting the breaking change introduced in #1033 (comment)

After upgrading to Wicket 10.x, form validators (IFormValidator) are not executed if any dependent form component is disabled, due to the addition of an isEnabledInHierarchy() check. This breaks backward compatibility for applications that rely on validators with conditionally enabled/disabled fields, as the validator is now skipped in these cases. This impacts forms with cross-field validation logic and causes migration issues for existing applications. A flag or configuration to restore the previous behavior, or reverting the change, is needed for backward compatibility

@papegaaij
Copy link
Contributor

This pull request looks good to me. When the last comment is addressed, I would like to merge it.

@papegaaij papegaaij merged commit d12a0e5 into apache:master Jun 26, 2025
@mira-silhavy mira-silhavy deleted the WICKET-7159-form-validator-disabled-field branch June 26, 2025 14:09
@papegaaij
Copy link
Contributor

Thanks @mira-silhavy for the work

@andruhon
Copy link
Contributor

Thank you everyone, this issue was causing us pains! Where can I learn about release plans?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants