This also works on my end *BUT* the Date in part of an Object (not a field)
so I have Employee empl;
with Date dob,
thank you
Lukasz Lenart wrote:
>
>> I did, and it doesn't work, when I click submit, I immediately get a red
>> message next to the required fields...but not next to the date.
>
> That strange, I made a test and it works, I've annotated at setter level
>
> @RequiredFieldValidator(message = "Date is required")
> public Date getToday() {
> return today;
> }
>
> public void setToday(Date today) {
> this.today = today;
> }
>
>
> <s:textfield label="Today" name="today" />
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/S2%3A-validation-notation-on-DATE-%28object-that-has-a-Date-field%29-tp17995565p18080445.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]