Description
Test.java
------------
public class Test extends WebPage {
public Test() {
add(new WebMarkupContainer("test") {
@Override
protected void onComponentTag(ComponentTag tag)
});
}
}
Test.html
------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:wicket="http://wicket.apache.org/">
<body>
<span wicket:id="test"></span>
</body>
</html>
The code above will generate a org.apache.wicket.markup.MarkupException: Tag expected. Expected behavior is to replace the component body with whatever is in the third argument of replaceComponentTagBody
Regards
Per