Skip to content

Fix CDF webforms lifecycle issues#6830

Merged
valadas merged 8 commits intodnnsoftware:release/10.2.0from
donker:cdf-fix-1
Dec 10, 2025
Merged

Fix CDF webforms lifecycle issues#6830
valadas merged 8 commits intodnnsoftware:release/10.2.0from
donker:cdf-fix-1

Conversation

@donker
Copy link
Copy Markdown
Contributor

@donker donker commented Dec 7, 2025

The new CDF detaches itself from the Webforms lifecycle. The old CDF was very much tied into it as it created and deleted controls. The Css/JsExclude controls might miss their effect if this is not taken into account. We ran into an issue where a CSS file was not removed that should have been removed.

Copy link
Copy Markdown
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a general question here, do we anticipate this being considered a breaking change in any possibility by changing the processes from OnInit to OnLoad, which is later in the lifecycle?

Could this have a breaking change implication to anyone that may be using this in a custom module or otherwise?

Additionally: There appears to be test failures

@donker
Copy link
Copy Markdown
Contributor Author

donker commented Dec 7, 2025

I am fixing an issue that is causing the current Css/JSExclude to not work as advertised because of the Webforms lifecycle, BTW.

Just a general question here, do we anticipate this being considered a breaking change in any possibility by changing the processes from OnInit to OnLoad, which is later in the lifecycle?

Could this have a breaking change implication to anyone that may be using this in a custom module or otherwise?

I have asked myself this but have not succeeded in coming up with a scenario where that would happen. You're not supposed to inherit from these controls AFAIK. And given the entire page lifecycle in CDF is going away, it begs the question how it could break something. But if anyone has an idea, I'd be happy to test.

Additionally: There appears to be test failures

That appeared to be from another commit than this.

@valadas valadas deleted the branch dnnsoftware:release/10.2.0 December 9, 2025 16:54
@valadas valadas closed this Dec 9, 2025
@bdukes bdukes reopened this Dec 9, 2025
@valadas valadas merged commit 4b85bd1 into dnnsoftware:release/10.2.0 Dec 10, 2025
3 checks passed
@donker donker deleted the cdf-fix-1 branch February 4, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants