@@ -0,0 +1,1305 @@
+package de.alpharogroup.wicket.behaviors;%0A%0Aimport org.apache.wicket.Component;%0Aimport org.apache.wicket.behavior.Behavior;%0A%0A/**%0A * The abstract class %7B@link ComponentDecoratorBehavior%7D provides callback%0A * methods for decorate(wrap) a component with html tags. There for you can get%0A * the %7B@link Response%7D of the component and write to it.%0A */%0Apublic abstract class ComponentDecoratorBehavior extends Behavior %7B%0A%0A%09/** The constant serialVersionUID. */%0A%09private static final long serialVersionUID = 1L;%0A%0A%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void bind(Component component) %7B%0A%09%09component.setOutputMarkupId(true);%0A%09%7D%0A%0A%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void beforeRender(Component component) %7B%0A%09%09onBeforeRender(component);%0A%09%09super.beforeRender(component);%0A%09%7D%0A%0A%09/**%0A%09 * %7B@inheritDoc%7D%0A%09 */%0A%09@Override%0A%09public void afterRender(Component component) %7B%0A%09%09super.afterRender(component);%0A%09%09onAfterRender(component);%0A%09%7D%0A%0A%09/**%0A%09 * Abstract factory callback method to hook after render.%0A%09 *%0A%09 * @param component%0A%09 *            the component%0A%09 */%0A%09protected abstract void onAfterRender(Component component);%0A%0A%09/**%0A%09 * Abstract factory callback method to hook before render.%0A%09 *%0A%09 * @param component%0A%09 *            the component%0A%09 */%0A%09protected abstract void onBeforeRender(Component component);%0A%09%0A%7D%0A

Create ComponentDecoratorBehavior.java