Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4691

Unescaped html in autocomplete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8, 6.0.0
    • wicket-extensions
    • None
    • Windows, Java 1.6

    Description

      Create list of Strings with html keywords: List<String> list = Arrays.asList("a", "<td>", "<li>","</td>");
      Let autocomplete display these values: @Override
      protected Iterator getChoices(String input)

      { return list.iterator(); }

      html is unescaped, strings are "copy and paste"'d to html

      Ajax response (from Firebug) looks like this:
      <ul><li textvalue="a">a</li><li textvalue="<td>"><td></li><li textvalue="<li>"><li></li><li textvalue="</td>"></td></li></ul>

      Attachments

        1. myproject.zip
          24 kB
          W.Mazur

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              wm W.Mazur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: