Here are some code sniplets, perhaps you can see what's wrong - I definitely don't call super newEditor().
The next problem I will get is that the ContentEditorLabel closes when I click on an other field in the form. I would prefer a modal behaviour what means that I have to use the buttons to close the ne edit fields ... private class ContentEditorLabel extends AjaxEditableLabel<String> { private static final long serialVersionUID = 1L; public ContentEditorLabel(String id) { super(id); } @Override protected final FormComponent<String> newEditor( MarkupContainer parent, String componentId, IModel<String> model) { final SwiftFieldInput editor = new SwiftFieldInput(componentId, model){ private static final long serialVersionUID = 1L; @Override public IConverter getConverter(Class<?> type) { IConverter c = ContentEditorLabel.this.getConverter(type); return c != null ? c : super.getConverter(type); } @Override protected void onModelChanged() { super.onModelChanged(); ContentEditorLabel.this.onModelChanged(); } @Override protected void onModelChanging() { super.onModelChanging(); ContentEditorLabel.this.onModelChanging(); } }; editor.setOutputMarkupId(true); editor.setVisible(false); editor.add(new EditorAjaxBehavior()); return editor; } }; package com.csc.pts.web.panels.swift; import org.apache.wicket.markup.html.form.FormComponent; import org.apache.wicket.markup.html.form.FormComponentPanel; import org.apache.wicket.markup.html.form.TextArea; import org.apache.wicket.model.IModel; import org.apache.wicket.model.Model; public class SwiftFieldInput extends FormComponentPanel<String> { private static final long serialVersionUID = 1L; private final FormComponent<String> contentArea; String test; public SwiftFieldInput(String id, IModel<String> model) { super(id,model); contentArea = new TextArea<String>("contentarea",new Model<String>()); add(contentArea); } @Override protected void onModelChanged() { super.onModelChanged(); String content = getModelObject(); if (content != null) contentArea.setModelObject(content); else contentArea.setModelObject(null); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Customize-AjaxEditableLabel-tp3643409p3645206.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org