Repository navigation
Conversation
The messages only had the component's class and id, so with several components sharing an id such as 'feedback' it was impossible to tell which one failed. They now also name the page class and the page-relative path of the component. When the failure happens while an Ajax update renders, the message adds a hint that the parent's markup may not contain the component. Only the message text changes. The exception types are unchanged. GitHub issue apache#1957 Generated-by: Claude Code (Claude Sonnet 5.5, claude-sonnet-5-5) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Robotcell
force-pushed
the
markup-not-found-message
branch
2 times, most recently
from
November 25, 2026 17:06
d7fd582 to
436918e
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2012 +/- ##
============================================
- Coverage 63.24% 63.21% -0.03%
+ Complexity 11737 11736 -1
============================================
Files 1255 1255
Lines 48981 48980 -1
Branches 6935 6935
============================================
- Hits 30977 30965 -12
- Misses 15316 15328 +12
+ Partials 2688 2687 -1 🚀 New features to boost your workflow:
|
Replaced the existing markupNotFoundMessage method with a new implementation that builds a message for components without markup, including page and path details.
Contributor
|
Already included in PR #1966 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1957
What changed
The two "markup not found" messages in
Component(internalRender()->MarkupNotFoundException,internalRenderComponent()->MarkupException) now also name the page class and the page-relative path of the component, e.g.Markup not found for Component: [Component id = missing], page: com.example.MyPage, path: panel:missing. If an Ajax request handler is active, they add a hint that the parent's markup may not contain the component (e.g. it was invisible on first render). Only the message text changes; exception types are unchanged.Not changed: the other
MarkupNotFoundExceptionsites inMarkupContainer/sourcing strategies, which are about missing markup files/fragments and already name them.Testing
ComponentMarkupNotFoundTestinwicket-core-testsasserts the page class and path in the message.mvn -Pfast -pl wicket-core-tests test -Dtest=ComponentMarkupNotFoundTest,PanelTest,LinkTest,SimplePageTest,ComponentMarkupIdTest: pass (JDK 25, release 21).mvn clean verify,-Pjs-test, japicmp. The Ajax hint branch is not covered by a test.AI disclosure
This change was prepared with Claude Code (AI assistance). The account owner did not review the code line by line. Local verification: only the
mvn -Pfast ... testrun listed under Testing. The fullmvn clean verify,-Pjs-testand japicmp were not run. CI: awaiting maintainer approval; theJava CIworkflow has not run. The commit message carries aGenerated-bytrailer, as recommended by the ASF generative tooling guidance.🤖 Generated with Claude Code