};
final Label label = new Label("label", labelModel);
add(label);
label.setOutputMarkupId(true);
ReferenceEditorPanel editor = new ReferenceEditorPanel("editor", model) {
@Override
public ReferenceEditorConfiguration getConfiguration() {
return ReferenceColumnPanel.this.getConfiguration();
}
@Override
public boolean isVisible() {
return isEditing();
}
@Override
protected IModel<String> newLabelModel() {
return new AbstractModel<String>() {
@Override
public String getObject() {
return "";
}
};
}
@Override
protected void onUpdate(AjaxRequestTarget target) {
super.onUpdate(target);
target.addComponent(label);
}
};
editor.setOutputMarkupPlaceholderTag(true);
add(editor);
}