panel.setRenderBodyOnly(true);
panelContainer.add(panel);
MarkupContainer xsltContainer = new XsltOutputTransformerContainer("test4");
add(xsltContainer);
Border border2 = new SimpleBorder("myBorder2");
border2.setRenderBodyOnly(false);
border2.add(new AttributeModifier("testAttr", "myValue"));
xsltContainer.add(border2);
MarkupContainer borderContainer = new AbstractOutputTransformerContainer("test3")
{
private static final long serialVersionUID = 1L;
@Override
public CharSequence transform(Component component, CharSequence output)
{
// Convert all text to uppercase
return output.toString().toUpperCase();
}
};
add(borderContainer);
Border border = new SimpleBorder("myBorder");
borderContainer.add(border);
MarkupContainer xsltContainer2 = new XsltOutputTransformerContainer("test5", null,
"org/apache/wicket/markup/outputTransformer/anyName.xsl");
add(xsltContainer2);
Border border3 = new SimpleBorder("myBorder3");
border3.setRenderBodyOnly(false);
border3.add(new AttributeModifier("testAttr", "myValue"));
xsltContainer2.add(border3);
}