Hi All,
Forget what I said before - I was convinced by a colleague that the hour
range was wrong when in fact it isn't wrong for the 12-hour range which has
the AM/PM. I'm not sure that the 24-hour range should allow an hour of 24
to be entered but I'm not too familiar with how people use a 24 hour clock.
Jim
jnorris wrote:
>
> The DateTimeField validation message for hours for a 12-hour format
> indicates that the date must be between 0 and 12. Shouldn't this be
> between 1 and 12? The validator has the following:
>
> protected Map variablesMap(IValidatable validatable)
> {
> final Map map = super.variablesMap(validatable);
> map.put("minimum", new Long(0));
> map.put("maximum", new Long(getMaximumHours()));
> return map;
> }
>
> Shouldn't the minimum setting be 1 instead of 0 or am I missing something?
>
> Jim
>
--
View this message in context:
http://www.nabble.com/DateTimeField-validation-tp19077792p19078120.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]