You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "wmike1987@gmail.com" <wm...@gmail.com> on 2011/06/16 01:27:09 UTC

autocomplete editable label

Is there any way to combine the function of the auto complete text field and
the function of the ajaxEditableLabel?

I'd like to click some text, have an editable text box appear, and have it
autocomplete for me.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/autocomplete-editable-label-tp3600846p3600846.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: autocomplete editable label

Posted by leoerlandsson <Le...@tyringe.com>.
Sure! Just override

protected FormComponent newEditor(MarkupContainer parent,
      String componentId, IModel model) {
                TextField editor = new TextField(componentId, model);
                editor.setOutputMarkupId(true);
                editor.setVisible(false);
               editor.add(new EditorAjaxBehavior());
               return editor;
           }

and return an AutoCompleteTextField instead of a TextField

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/autocomplete-editable-label-tp3600846p3602366.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org