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:
Stefan Kanev, Igor Vaynberg (ivaynberg)
See Also:
  • Constructor Details

    • DateTextField

      public DateTextField(String id)
      Creates a new DateTextField, without a specified pattern. This is the same as calling new TextField(id, Date.class)
      Parameters:
      id - The id of the text field
      See Also:
    • DateTextField

      public DateTextField(String id, IModel<Date> model)
      Creates a new DateTextField, without a specified pattern. This is the same as calling new TextField(id, object, Date.class)
      Parameters:
      id - The id of the text field
      model - The model
      See Also:
    • DateTextField

      public DateTextField(String id, String datePattern)
      Creates a new DateTextField bound with a specific SimpleDateFormat pattern.
      Parameters:
      id - The id of the text field
      datePattern - A SimpleDateFormat pattern
      See Also:
    • DateTextField

      public DateTextField(String id, IModel<Date> model, String datePattern)
      Creates a new DateTextField bound with a specific SimpleDateFormat pattern.
      Parameters:
      id - The id of the text field
      model - The model
      datePattern - A SimpleDateFormat pattern
      See Also:
  • Method Details