All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<Date,FormComponent<Date>>, IMetadataContext<Serializable,Component>, AbstractTextComponent.ITextFormatProvider, IFormModelUpdateListener, IFormVisitorParticipant, ILabelProvider<String>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

A TextField that is mapped to a java.util.Date object.

If no date pattern is explicitly specified, the default DateFormat.SHORT pattern for the current locale will be used.

Author:
miha, Urs Joss
See Also:
  • Constructor Details

    • DateTextField

      public DateTextField(String markupId)
      Parameters:
      markupId - The id of the text field
    • DateTextField

      public DateTextField(String markupId, String datePattern)
      Parameters:
      markupId - The id of the text field
      datePattern - The format of the date
    • DateTextField

      public DateTextField(String markupId, IModel<Date> model)
      Parameters:
      markupId - The id of the text field
      model - The date model
    • DateTextField

      public DateTextField(String markupId, IModel<Date> model, String dateFormat)
      Parameters:
      markupId - The id of the text field
      model - The date model
      dateFormat - The format of the date
    • DateTextField

      public DateTextField(String markupId, IModel<Date> model, DateTextFieldConfig config)
      Parameters:
      markupId - The id of the text field
      model - The date model
      config - The configuration of this field
    • DateTextField

      public DateTextField(String markupId, DateTextFieldConfig config)
      Parameters:
      markupId - The id of the text field
      config - The configuration of this field