Child pages
  • datetimepicker
Skip to end of metadata
Go to start of metadata

To use this tag:

  • Add: <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> to your page.
  • The head tag must be included on the page, which can be configured for performance or debugging purposes.
  • If the parseContent parameter for the head tag is false (it is false by default), then the id tag is required.

Additional Examples

For more examples see Ajax and JavaScript Recipes

Description

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Parameters

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Examples

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Getting and getting the datetimepicker value, from JavaScript:

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Publish topic when value changes

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
  • No labels

3 Comments

  1. This tag doesn't work unless you include the <s:head /> tag on your jsp.
    The format property is not defined in the DTD, so if you try to use it, an exception will be thrown.
    It would be good to update the documentation about this tag.

  2. I use this tag and find a bug for it.
    when you enter some non-date format characters such as 'abvc' BEFORE choose a date,then kill focus for the datatimepicter,you get a javascript error :
    -------------------------------------------------------------------
    Line:4872
    Char:1
    Code:0
    Error:object Error
    site:http://localhost/struts2-showcase-2.0.11/tags/ui/datepicker/
    ------------------------------------------------------------------
    you can try the examples offered with the struts-2.0.11-all.zip. http://localhost/struts2-showcase-2.0.11/tags/ui/datepicker/

    the value for the "US format" is empty,then enter some non-date format charcters BEFORE choose a date,then kill focus

    1. Just for the sake of completeness: the issue reported above can be tracked here1.
      1 https://issues.apache.org/struts/browse/WW-2540