Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1659

Update autocompleter to accept JSON generated using the JSON plugin

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.3
    • 2.0.7
    • Plugin - Tags
    • None
    • Patch

    Description

      The autocompleter expects a JSON array of 2 dimension arrays. The JSON string generated using the JSON plugin will always be an object. Modify the autocompleter to do the following:

      If response is of type object, try to find a field with the same name as the autocompleter, if found, use its value as the datasource, if not, use the first array found.
      If the response is not of type object, assume it is an array and use it as datasource (current behavior)

      Compatibility won't be affected by this improvement.

      Attachments

        1. WW-1659.patch
          2 kB
          Musachy Barroso

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            musachy Musachy Barroso
            musachy Musachy Barroso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment