are you using trunk?
in earlier versions of trunk you had to override
DatePicker#notifyComponentOnDateSelected to return true.
now it returns true by default. don't worry too much about the javascript
code generated by DatePicker, it should work well.

also, DateField consists of a DateTextField and automatically adds a
DatePicker behavior to that DateTextField, but you can provide your own
DateTextField (e.g. with an added
AjaxFormComponentUpdatingBehavior("onchange") ) by overriding
DateField#newDateTextField(String, PropertyModel)

hth,
  gerolf

On 8/21/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> On Tue, 21 Aug 2007 11:58:19 +0200
> Federico Fanton <[EMAIL PROTECTED]> wrote:
>
> > So, the "onchange" is bound to the span element.. Maybe I should use a
> different markup in my HTML? I'd like the event to fire when I select a date
> from the popup calendar..
>
> I see that the code for the datepicker popup contains
>
> // fire onchange notification
> if (wasVisible && false) {
>     YAHOO.util.Dom.get("date2").onchange();
> }
>
> So maybe I should bind the behavior to the textfield instead ("date2" is
> its id) and.. Well, figure out what that "&& false" is about X-)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to