Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Excerpt Include
ajax common header
ajax common header
nopaneltrue
Note

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

...

To use the datetimepicker that you need to include the head tag in you page, and set it theme attribute to "ajax", like

...

Description

Wiki Markup
{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.dojo.components.DateTimePickerstruts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java}

Parameters

Wiki Markup
{snippet:id=tagattributes|javadoc=false|url=struts2-tags/ajax/datetimepicker.html}

Examples

Wiki Markup
{snippet:id=expl1example1|lang=xml|javadoc=true|url=org.apache.struts2.dojo.components.DateTimePicker}struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java}

Getting and getting the datetimepicker value, from JavaScript:

Wiki Markup
{snippet:id=expldesc2example2|lang=xml|javadoc=true|url=org.apache.struts2.dojo.components.DateTimePicker}struts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java}

Publish topic when value changes

Wiki Markup
{snippet:id=expl2example3|lang=xml|javadoc=true|url=org.apache.struts2.dojo.components.DateTimePickerstruts2/plugins/dojo/src/main/java/org/apache/struts2/dojo/components/DateTimePicker.java}