public class MergedMarkup extends Markup
The Markups are merged at load time. Deep markup hierarchies are supported. Multiple inheritance is not.
The markup resource file, which is associated with the markup, will be the resource of the requested markup file. The base markup resources are not.
Base Markup must have a <wicket:child/> tag at the position where the derived markup should be inserted. From the derived markup all tags in between <wicket:extend> and </wicket:extend> will be inserted.
In addition, all <wicket:head> regions are copied as well. This allows to develop completely self-contained plug & play components including javascript etc.
Constructor and Description |
---|
MergedMarkup(Markup markup,
Markup baseMarkup,
int extendIndex)
Merge inherited and base markup.
|
Modifier and Type | Method and Description |
---|---|
String |
locationAsString() |
addMarkupElement, addMarkupElement, find, get, getMarkupResourceStream, iterator, iterator, makeImmutable, of, of, replace, size, toString, toString
find
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public String locationAsString()
locationAsString
in class Markup
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.