Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Search
  1. Introduction
  2. Getting Started
  3. Trinidad Concepts
  4. Code View Support
  5. Design View Support
  6. Tag Object Toolbars
  7. Trinidad Server Behaviors
  8. Trinidad Property Inspectors
  9. Trinidad Tag Reference
Trinidad Core Tag Library
  tr:attribute
  tr:breadCrumbs
  tr:chart
  tr:chooseColor
  tr:chooseDate
  tr:column
  tr:commandButton
  tr:commandLink
  tr:commandNavigationItem
  tr:componentDef
  tr:componentRef
  tr:convertColor
  tr:convertDateTime
  tr:convertNumber
  tr:document
  tr:facetRef
  tr:forEach
  tr:form
  tr:goButton
  tr:goLink
  tr:group
  tr:icon
  tr:image
  tr:importScript
  tr:inputColor
  tr:inputDate
  tr:inputFile
  tr:inputHidden
  tr:inputListOfValues
  tr:inputNumberSpinbox
  tr:inputText
  tr:iterator
  tr:legend
  tr:media
  tr:message
  tr:messages
  tr:navigationPane
  tr:navigationTree
  tr:outputDocument
  tr:outputFormatted
  tr:outputLabel
  tr:outputText
  tr:page
  tr:panelAccordion
  tr:panelBorderLayout
  tr:panelBox
  tr:panelButtonBar
  tr:panelChoice
  tr:panelFormLayout
  tr:panelGroupLayout
  tr:panelHeader
  tr:panelHorizontalLayout
  tr:panelLabelAndMessage
  tr:panelList
  tr:panelPage
  tr:panelPageHeader
  tr:panelPartialRoot
  tr:panelRadio
  tr:panelSideBar
  tr:panelTabbed
  tr:panelTip
  tr:poll
  tr:processChoiceBar
  tr:progressIndicator
  tr:resetActionListener
  tr:resetButton
  tr:returnActionListener
  tr:selectBooleanCheckbox
  tr:selectBooleanRadio
  tr:selectItem
  tr:selectManyCheckbox
  tr:selectManyListbox
  tr:selectManyShuttle
  tr:selectOneChoice
  tr:selectOneListbox
  tr:selectOneRadio
  tr:selectOrderShuttle
  tr:selectRangeChoiceBar
  tr:separator
  tr:setActionListener
  tr:showDetail
  tr:showDetailHeader
  tr:showDetailItem
  tr:singleStepButtonBar
  tr:spacer
  tr:subform
  tr:switcher
  tr:table
  tr:train
  tr:tree
  tr:treeTable
  tr:validateByteLength
Selected tr:validateDateRestriction
  tr:validateDateTimeRange
  tr:validateDoubleRange
  tr:validateLength
  tr:validateLongRange
  tr:validateRegExp
  tr:validator
If you like this documentation, please take a look at my book:

9. Trinidad Core Tag Reference

Documentation > Trinidad > Trinidad Tag Reference > Trinidad Core Tag Library > tr:validateDateRestriction

tr:validateDateRestriction

<p>The <tr:validateDateRestriction> tag validates a date field. See the invalidMonths, invalidDaysOfWeek, invalidDays attributes.</p>

Example

<tr:validateDateRestriction> </tr:validateDateRestriction> 

HTML Output

(No output.)

Tag Attributes

id Text
 
the identifier for the component
invalidDays Text
 
To specifiy a concrete List of Dates, use the invalidDays attribute and wire it to a DateListProvider implementation. This returns a list of dates, which are invalid.
invalidDaysOfWeek Text
 
Specify the weekdays which are invalid for your use case. The attribute takes whitespace delimited list of weekdays. Possible values are sun, mon, tue, wed, thu, fri, sat.
invalidMonths Text
 
Specify the month which are invalid for your use case. The attribute takes a whitespace delimited list of months. Possible values are jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec.
messageDetailInvalidDays Text
 
The detail error message to be used for constructing faces messages, when input value is less than the set invalidDate value. </p> <p> Parameters:<ul><li> {0} the label that identifies the component </li><li> {1} value entered by the user </li><li> {2} the invalid date </li></ul>
messageDetailInvalidDaysOfWeek Text
 
The detail error message to be used for constructing faces messages, when input value is less than the set invalidDaysOfWeek value. </p> <p> Parameters:<ul><li> {0} the label that identifies the component </li><li> {1} value entered by the user </li><li> {2} the invalid weekday </li></ul>
messageDetailInvalidMonths Text
 
The detail error message to be used for constructing faces messages, when input value exceeds the invalidMonths value set. </p> <p> Parameters:<ul><li> {0} the label that identifies the component </li><li> {1} value entered by the user </li><li> {2} the invalid month </li></ul>