In wicket 1.4.17 I want to have AjaxFormComponentUpdatingBehavior on a
DateTimeFiled for all its components (text field, hours field, minutes

I can do this only on date text field :

DateTimeField txtTime = new DateTimeField("txtTime", generalModel) {

         protected DateTextField newDateTextField(String id, PropertyModel
dateFieldModel) {
                        DateTextField f = super.newDateTextField(id, 
                        f.add( new 
AjaxFormComponentUpdatingBehavior("onchange") {
                                   protected void onUpdate(AjaxRequestTarget
target) {...}
                        return f;

But TextField's for hours and minutes are private and do not have similar
methods to overwrite.
Does anyone use another approach instead of rewriting the hole class again?

View this message in context:
Sent from the Users forum mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to