new DateTimeField(...) { protected DateTextField newDateTextField(...) { DateTextField field = super.newDateTextField(...); field.add(new AjaxEventBehavior(...) {...}); return field; } }
On Wed, May 21, 2008 at 3:32 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I've got a DateTimeField panel which works just fine. However, I need to > toggle the visibility of a checkbox once the date has been populated. > This is of course via AJAX with an AjaxEventBehavior. > > > > I tried to slap the behavior on the DateTimeField panel, but the onEvent > method only gets triggered when I select am/pm, which is the last field > in that panel. BTW, when referring to 'panel' I mean that internal panel > that DateTimeField uses, not my own panel in my page. > > > > How can I make the date field in the DateTimeField panel trigger my > event? > > > > Thanks, > > > > Michael > >