Interface DateTagDeclaration
- All Superinterfaces:
HasAccessKey,HasAutoSpacing,HasBinding,HasConverter,HasConverterMessage,HasDecorationPosition,HasHelp,HasId,HasIdBindingAndRendered,HasLabel,HasLabelLayout,HasPlaceholder,HasRequiredMessage,HasTabIndex,HasTip,HasValidator,HasValidatorMessage,HasValue,HasValueChangeListener,IsDisabled,IsFocus,IsReadonly,IsRendered,IsRequired,IsVisual
public interface DateTagDeclaration
extends HasAccessKey, HasValidator, HasValue, HasValueChangeListener, HasTabIndex, IsFocus, IsVisual, HasValidatorMessage, HasConverterMessage, HasRequiredMessage, HasIdBindingAndRendered, IsReadonly, IsDisabled, HasConverter, HasLabel, HasHelp, HasLabelLayout, HasDecorationPosition, HasTip, IsRequired, HasPlaceholder, HasAutoSpacing
Renders a date input field.
For a time input field set you'll need to set the <f:convertDateTime type="time"> inside the <tc:date>.
If there is no converter given, a default instance of DateTimeConverter will be used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets the maximum value of the date.voidSets the minimum value of the date.voidSets the step of a date or time picker.voidsetTodayButton(String required) If true, a today- or now-button is displayed.voidType of the date/time input.voidSets the minimum value of the date.Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasAccessKey
setAccessKeyMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasAutoSpacing
setAutoSpacingMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding
setBindingMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasConverter
setConverterMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasConverterMessage
setConverterMessageMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasDecorationPosition
setHelpPosition, setMessagePositionMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasHelp
setHelpMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasLabel
setLabelMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasLabelLayout
setLabelLayoutMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasPlaceholder
setPlaceholderMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasRequiredMessage
setRequiredMessageMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasTabIndex
setTabIndexMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasTip
setTipMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasValidator
setValidatorMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasValidatorMessage
setValidatorMessageMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasValueChangeListener
setValueChangeListenerMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsDisabled
setDisabledMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsFocus
setFocusMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsReadonly
setReadonlyMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRendered
setRenderedMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRequired
setRequiredMethods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsVisual
setCustomClass, setMarkup
-
Method Details
-
setTodayButton
If true, a today- or now-button is displayed. -
setValue
Sets the minimum value of the date. -
setMin
Sets the minimum value of the date. -
setMax
Sets the maximum value of the date. -
setStep
Sets the step of a date or time picker. Value is in seconds. Reasonable values are e.g. 0.001, 1, 5, 10, 60, 300, 3600. If not set, browsers drop the seconds, so it's the same as the value of 60. To show seconds use 1. To show milliseconds use 0.001. Browser support is in progress. -
setType
Type of the date/time input. Warning: month and week currently not supported.
-