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

Validation broken on autocompleters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.9, 2.1.0
    • 2.1.1
    • None
    • Issue identified on Windows XP using Firefox

    Description

      I have an autocompleter named "site":
      <s:url id="siteList" action="AutocompleteField" method="selectSite" namespace="/general" />
      <sx:autocompleter label="Site" value="%

      {system.site}

      "
      forceValidOption="true"
      cssStyle="width:132px; height:18px; border:1px solid #7B9EBD"
      name="site" required="true" href="%

      {siteList}

      "
      loadOnTextChange="true" showDownArrow="false" dropdownWidth="300"
      searchType="substring" />

      It has the following validator:
      <field name="site">
      <field-validator type="requiredstring">
      <message>Field is required</message>
      </field-validator>
      </field>

      When I submit my .jsp without site filled in I get the message: "TypeError: row.cells has no properties"
      When I submit my .jsp with site filled in I get message that the field is required and all the other fields are blanked out.

      Attachments

        1. siteEmptyOnSubmit.png
          29 kB
          Java Developer
        2. allFieldsFilledOnSubmit.png
          25 kB
          Java Developer
        3. validation.js.patch
          0.6 kB
          Java Developer
        4. validation.js.patch
          2 kB
          Java Developer
        5. validation.js.patch
          2 kB
          Java Developer

        Activity

          People

            jeromy Jeromy Evans
            chengas123 Java Developer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: