DateTextField insteadpublic class YearMonthDayConverter extends Object implements org.apache.wicket.util.convert.IConverter<YearMonthDay>
YearMonthDay.
In HTML, use <input type="date">. In Wicket, add the following to the application class:
protected IConverterLocator newConverterLocator() {
ConverterLocator locator =
(ConverterLocator) super.newConverterLocator();
locator.set(YearMonthDay.class, new YearMonthDayConverter());
return locator;
}
| Constructor and Description |
|---|
YearMonthDayConverter()
Deprecated.
|
YearMonthDayConverter(SimpleDateFormat format)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
YearMonthDay |
convertToObject(String arg0,
Locale arg1)
Deprecated.
|
String |
convertToString(YearMonthDay arg0,
Locale arg1)
Deprecated.
|
public YearMonthDayConverter()
public YearMonthDayConverter(SimpleDateFormat format)
public YearMonthDay convertToObject(String arg0, Locale arg1)
convertToObject in interface org.apache.wicket.util.convert.IConverter<YearMonthDay>public String convertToString(YearMonthDay arg0, Locale arg1)
convertToString in interface org.apache.wicket.util.convert.IConverter<YearMonthDay>