On 8/9/07, Federico Fanton <[EMAIL PROTECTED]> wrote:
> On Thu, 9 Aug 2007 16:00:24 +0100
> "Dipu Seminlal" <[EMAIL PROTECTED]> wrote:
>
> > i just tried with the date picker on 1.2.6 and it works, don't know if
> > anything has changed drastically in 1.3
>
> In 1.3 DatePicker was replaced with DateField, they are completely different
> components.. I will try with your suggestion ASAP though, thanks again :)
DateField is mainly a convenience implementation of a text field +
date picker. It is trivial to just use the date picker directly
though: myDateTextField.add(new DatePicker());
Regarding receiving those events, this is in 1.3's DatePicker component:
/**
* Whether to notify the associated component when a date is selected.
* Notifying is done by calling the associated component's onchange
* Javascript event handler. You can for instance attach an
* [EMAIL PROTECTED] AjaxEventBehavior} to that component to get a call
back to the
* server. The default is true.
*
* @return if true, notifies the associated component when a date is
* selected
*/
protected boolean notifyComponentOnDateSelected()
{
return true;
}
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]