Hi all,

I'm currently having some trouble with a DateTextField. The DateTextField has a DatePicker component attached to it. Once the user changes the date with the DatePicker, the attached DateTextField is assigned the new date and should trigger the onChange event. Which it doesn't do....

Everything works fine if the date is changed by typing directly it into the textfield. Any ideas?




DateTextField dtf  = DateTextField.forShortStyle("dateField", new
PropertyModel(this, "date"));

dtf.add(new DatePicker());

OnChangeAjaxBehavior dateOnChange = new OnChangeAjaxBehavior() {
        
            @Override
            protected void onUpdate(AjaxRequestTarget target) {
                log.debug("dateField onChange event triggered.");
                // do some stuff with the date here...
            }

};

dtf.add(dateOnChange);
add(dtf);


--Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to