add(size);
size.setOutputMarkupId(true);
size.setEscapeModelStrings(false);
WebMarkupContainer resizable = new WebMarkupContainer("resizable");
ResizableAjaxBehavior ajaxBehavior = new ResizableAjaxBehavior(){
private static final long serialVersionUID = 1L;
@Override
public void onResize(int height, int width, AjaxRequestTarget ajaxRequestTarget) {
ResizablePanel.this.height = height;
ResizablePanel.this.width = width;
ajaxRequestTarget.addComponent(ResizablePanel.this.get("size"));
}
};
ajaxBehavior.getResizableBehavior()
.setGhost(true)
.setAnimate(true)
.setAutoHide(true);
resizable.add(ajaxBehavior);