users@woodstock.java.net

Re: woodstock 4.1.1 Calendar autovalidate

From: Dan Labrecque <Dan.Labrecque_at_Sun.COM>
Date: Mon, 21 Jan 2008 10:16:35 -0500

The calendar does not support auto-validate. Subscribing to the
validation event of the textfield will not work because each widget
supports its own set of event topics. Please file an RFE.

Dan

autozoom wrote:
> hello,
> I am trying to validate a calendar field using the autovalidate=true
> property.
> I can see in the app server log that validation actually happens, but then I
> would like to hook this event and do something client side.
> The problem is that calendar doesn't expose a validation event.
> Then I tried to dojo subscribe to the validation event of the textfield. My
> callback get called, but the calendar widget doesn't have a "valid" property
> returned by getProps().
> So how can I react to an unsuccessfull validation of the calendar and do
> something client side?
> (Of course I wouldn't like to parse the calendar value using javascript,
> doing this would make the JSF validator useless).
>
> anyone can help?
> Thanks
>