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

Unknown macro: {snippet}

Parameters

Unknown macro: {snippet}

Examples

Get list from an action:

Unknown macro: {snippet}

Uses a list:

Unknown macro: {snippet}

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

Unknown macro: {snippet}

Linking two autocompleters:

Unknown macro: {snippet}

Set/Get selected values using JavaScript:

Unknown macro: {snippet}

Using beforeNotifyTopics:

Unknown macro: {snippet}

Using errorNotifyTopics:

Unknown macro: {snippet}

Using errorNotifyTopics:

Unknown macro: {snippet}

Using valueNotifyTopics:

Unknown macro: {snippet}

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