Skip to content

[https://github.com/apache/wicket/issues/1492] make partial page upda…#1493

Open
reiern70 wants to merge 1 commit into
wicket-10.xfrom
reiern70/issue_1492
Open

[https://github.com/apache/wicket/issues/1492] make partial page upda…#1493
reiern70 wants to merge 1 commit into
wicket-10.xfrom
reiern70/issue_1492

Conversation

@reiern70

Copy link
Copy Markdown
Contributor

make partial page update creation pluggable.

@reiern70 reiern70 requested review from bitstorm and martin-g June 19, 2026 21:03
super(page);

update = new XmlPartialPageUpdate(page)
update = newPartialPageUpdate(page);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

https://stackoverflow.com/questions/3404301/whats-wrong-with-overridable-method-calls-in-constructors

It will be better to add another constructor public AjaxRequestHandler(final Page page, final PartialPageUpdate ppu)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fine by me... checking

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Factory method is better because constructor argument does not allow access to protected methods

@reiern70 reiern70 requested a review from martin-g June 22, 2026 19:58
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.

3 participants