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

2.0.11 autocompleter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.11
    • 2.1.3
    • Plugin - Spring
    • None
    • Struts-2.0.11
      TOMCAT 5.5.7
      java version "1.5.0_02"
      4GB RAM
      1 Tera Diskspace
      Wintel box

    Description

      following the example code from the 2.0.11 distro located at /struts/struts-2.0.11/docs/docs/autocompleter.html
      I could not get the autocompleter to work with notifyTopic and listenTopic
      from this example

      <p>Linking two autocompleters:</p>
      <form id="selectForm">
      <sx:autocompleter name="select" list="

      {'fruits','colors'}

      " valueNotifyTopics="/changed" />
      </form>
      <sx:autocompleter href="%

      {jsonList}

      " formId="selectForm" listenTopics="/changed"/>

      even when I define a url specification for jsonList such as
      <s:url value="jsonList">

      there is a very large example that musachy created for beforeNotifyTopic, afterNotifyTopic, errorNotifyTopic and valueNotifyTopic
      unfortunately the missing method findString will prevent anyone from using the anything from the example

      the examples also use s: instead of sx: ..(should standardise either on using s: or sx: for struts-tags references)

      doc should be re-worked to separate Javascript functionality from Action based method functionality

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgainty Martin Gainty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: