I have two date fields: dateStart and dateEnd.

Both are optional. It is valid to enter just one of them.

If both are entered than dateEnd must be of course after dateStart.

I tried s:validateCompareTo therefore.

Unfortunately this does not work if dateStart is empty.

Any suggestions how to compare them in this case?

Is it possible with this tag or do I have to extend the validator ?

 

BTW it does not work as I expected if one of the dates is not entered
correctly, e.g. wrong format or just a string.

In this case I got the conversion error message and the validation error
message. 

I think this is just confusing the user.

 

Cheers,

Michael

 

Reply via email to