java.lang.Objectorg.apache.struts2.components.Component
org.apache.struts2.components.UIBean
org.apache.struts2.components.DateTimePicker
Renders a date/time picker in a dropdown container.
A stand-alone DateTimePicker widget that makes it easy to select a date/time, or increment by week, month, and/or year.
It is possible to customize the user-visible formatting with either the 'formatLength' (long, short, medium or full) or 'displayFormat' attributes. By defaulty current locale will be used.
Syntax supported by 'displayFormat' is (http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns):-| Format | Description |
| d | Day of the month |
| D | Day of year |
| M | Month - Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name. |
| h | Hour [1-12]. |
| H | Hour [0-23]. |
| m | Minute. Use one or two for zero padding. |
| s | Second. Use one or two for zero padding. |
The value sent to the server is typically a locale-independent value in a hidden field as defined by the name attribute. RFC3339 representation is the format used.
ExamplesExample 1: <s:datetimepicker name="order.date" label="Order Date" /> Example 2: <s:datetimepicker name="delivery.date" label="Delivery Date" format="yyyy-MM-dd" />The css could be changed by using the following :-
<s:datetimepicker name="birthday" label="Birthday" templateCss="...." />
| Field Summary | ||
|---|---|---|
| public static final String | TEMPLATE | |
| protected static final Log | LOG | |
| protected String | iconPath | |
| protected String | formatLength | |
| protected String | displayFormat | |
| protected String | toggleType | |
| protected String | toggleDuration | |
| protected String | type | |
| protected String | displayWeeks | |
| protected String | adjustWeeks | |
| protected String | startDate | |
| protected String | endDate | |
| protected String | weekStartsOn | |
| protected String | staticDisplay | |
| protected String | dayWidth | |
| protected String | language | |
| protected String | templateCssPath | |
| Fields inherited from org.apache.struts2.components.UIBean: |
|---|
| request, response, templateSuffix, template, templateDir, theme, key, cssClass, cssStyle, disabled, label, labelPosition, requiredposition, name, required, tabindex, value, title, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onfocus, onblur, onkeypress, onkeydown, onkeyup, onselect, onchange, accesskey, tooltip, tooltipConfig, defaultTemplateDir, defaultUITheme, templateEngineManager |
| Fields inherited from org.apache.struts2.components.Component: |
|---|
| COMPONENT_STACK, stack, parameters, id, actionMapper |
| Constructor: |
|---|
|
| Method from org.apache.struts2.components.DateTimePicker Summary: |
|---|
| evaluateParams, getDefaultTemplate, setAdjustWeeks, setDayWidth, setDisplayFormat, setDisplayWeeks, setEndDate, setFormatLength, setIconPath, setLanguage, setStartDate, setStaticDisplay, setTemplateCssPath, setToggleDuration, setToggleType, setType, setWeekStartsOn |
| Methods from org.apache.struts2.components.Component: |
|---|
| addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineActionURL, determineNamespace, end, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, start, toString, usesBody |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.struts2.components.DateTimePicker Detail: |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|