Just use a regular TextField and toggle its enabled status in the Ajax callback handler. Be sure to refresh the element (target.add( yourTextComponent ) ); or the containing form if you have multiple components to toggle.
For custom bindings, take a look at AbstractDefaultAjaxBehavior and its subclasses (In Wicket 6.0 - might be called the same in earlier versions) N On Sun, Oct 14, 2012 at 10:44 PM, Ondrej Zizka <ozi...@redhat.com> wrote: > Hi all, > > I'd like to toggle AjaxEditableLabel into edit mode and back based on > user's interaction with other components. > How can I do that? > > Also, it seems that AEL switches the representing element between <span> > and <input>. > I would rather have it an input which only changes styles and gets > disabled when not in edit mode. > Is there some such alternative impl of AJAX editable label? > > And lastly, if there's not, I'd like make one. Can someone please post a > link to a tutorial on binding Javascript handlers to AJAX requests? > I've checked AEL's impl but I'd rather read some theory first. > > Thanks, > Ondra > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org