checkBox.setController(new PostBackController(getDestination())); checkBox.setOnClick("this.form.submit();"); checkBox.setOnDblClick("this.form.submit();");
String prefix = ((MetaSlot) getInputContext().getMetaObject()).getName();
    protected Layout getLayout(Object object, Class type) {        final Layout layout = super.getLayout(object, type);        return new Layout() {            @Override            public HtmlComponent createComponent(Object object, Class type) {                HtmlCheckBox checkBox = (HtmlCheckBox) layout.createComponent(object, type);                checkBox.setController(new PostBackController(getDestination()));                checkBox.setOnClick("this.form.submit();");                checkBox.setOnDblClick("this.form.submit();");                return checkBox;            }        };    }