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

Get list from an action:

Error formatting macro: snippet: java.lang.NullPointerException

Uses a list:

Error formatting macro: snippet: java.lang.NullPointerException

Autocompleter that reloads its content everytime the text changes (and the length of the text is greater than 3):

Error formatting macro: snippet: java.lang.NullPointerException

Linking two autocompleters:

Error formatting macro: snippet: java.lang.NullPointerException

Set/Get selected values using JavaScript:

Error formatting macro: snippet: java.lang.NullPointerException

Using beforeNotifyTopics:

Error formatting macro: snippet: java.lang.NullPointerException

Using errorNotifyTopics:

Error formatting macro: snippet: java.lang.NullPointerException

Using errorNotifyTopics:

Error formatting macro: snippet: java.lang.NullPointerException

Using valueNotifyTopics:

Error formatting macro: snippet: java.lang.NullPointerException

Caveats

  • The service that is producing the HTTP Response with JSON response to the Autocompleter tag must set the HTTP Header Response Content-Type to text/json. JSON has its own MIME type, which this tag expects.
  • Since 2.0.9, there is a change in the value:key order. Now, the value must come before the key.
  • No labels