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.NullPointerException

Parameters

Error formatting macro: snippet: java.lang.NullPointerException

Examples

Error formatting macro: snippet: java.lang.NullPointerException

Getting and getting the datetimepicker value, from JavaScript:

Error formatting macro: snippet: java.lang.NullPointerException

Publish topic when value changes

Error formatting macro: snippet: java.lang.NullPointerException
  • 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