Description
Create a base WebPage with a TransparentWebMarkupContainer to allow subclasses register CSS classes on the body tag. Add a Fragment to one of these subsclasses, the markup of the Fragment is not found.
See also http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-for-Fragment-and-TransparentWebMarkupContainer-tp4619968.html
Exception thrown:
org.apache.wicket.markup.MarkupNotFoundException: No Markup found for Fragment testFragment in providing markup container [Page class = org.foo.HomePage, id = 0, render count = 1]
at org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:143)
Attachments
Attachments
Issue Links
- is duplicated by
-
WICKET-4654 FragmentMarkupSourcingStrategy doesn't see fragment markup which is declared in subclassed panel.
- Resolved
-
WICKET-5440 TransparentWebMarkupContainer makes resolving of fragment markup fail on child pages
- Closed
- relates to
-
WICKET-5580 Allow markup to find child fragments when wicket:child is inside a component tag
- Resolved