Html5 Support for Apache MyFaces
Project Documentation
Foundation

Summary

Tag name: <fx:validateDateTimeRange>
Validator class: org.apache.myfaces.html5.validator.DateTimeRangeValidator
Tag class: org.apache.myfaces.html5.tag.input.ValidateDateTimeRangeTag
validator id: org.apache.myfaces.html5.DateTimeRange
Validate that the date entered is within a given range. Rendered min/max attributes of hx:inputDateTime is driven by this validator too.

Attributes

Name Type Supports EL? Description
exceedMaximumMessage String Yes Message to show if the minimum is not set and submitted value exceeds specified maximum value.
lessThanMinimumMessage String Yes Message to show if the maximum is not set and submitted value is before than specified minimum value.
maximum Object Yes Maximum date that can be selected on client-side and is used on validation at server-side. Value must be either String, or java.util.Date. If String is given, the value must be in the format of parent hx:inputDateTime's type.
minimum Object Yes Minimum date that can be selected on client-side and is used on validation at server-side. Value must be either String, or java.util.Date. If String is given, the value must be in the format of parent hx:inputDateTime's type.
notInRangeMessage String Yes Message to show if the minimum and minimum is set and submitted value is not in that range.