Q: Event triggered when the content in textarea is deleted I have a wicket application and need to save the data via Ajax when the content in a textarea changes. I can easily do it via "onchange" DOM event when content changes. But when the user deletes (by backspace or delete keys) the entire content the onchange event doesn't get triggered. Which event gets triggered ? 
I tried oninput, onkeyup and onchange. All these work until there's at least 1 character left. 
Wicket specific info: Version 1.5. The text area is added on to a Panel and it is added on to a DefaultDataTable. So the component is not directly added to a Form. The TextArea is wired to a PropertyModel 
final TextArea commentsTa = new TextArea("commentsTa", new PropertyModel<String>(dataObject, "property1"));
commentsTa.setOutputMarkupId(true);
commentsTa.setRequired(true);
commentsTa.setOutputMarkupPlaceholderTag(true);

 commentsTa.add(new AjaxFormComponentUpdatingBehavior("onchange") {

        @Override
        protected void onUpdate(AjaxRequestTarget target) {
             System.out.print("Starting onchange.... ");
            System.out.print("onchange: " + commentsTa.getConvertedInput());

        }

    });


Updates: 
I removed the commentsTa.setRequired(true); from the above code and it started working. I guess the reason is that Wicket enforces validation and as a result of that onchange event does get fired. 
