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

Error while parsing xml using AjaxButton

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0-M8
    • 8.0.0, 7.11.0
    • None
    • None

    Description

      Problem is caused when refreshing markup using Ajax and in data is special character (￾).

      Error occurs in my project everywhere when refreshing markup using Ajax where this special character occurs.

      I create and attach quickstart project which reproduces this problem in simple way: changing markup through hiding/showing TextField by ajax button.

       

      Steps to reproduce problem:

      1. Download and run attached quickstart project

      2. Enter to TextField symbol presented under "Insert this string for error..." label:

      3) Click „Regular submit” twice (this causes component to refresh, but doesn’t cause error)

      4) Now click „Ajax submit” twice – this causes button to not refresh markup and show error:

       

      ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Error: Invalid XML: <?xml version="1.0" encoding="UTF-8"?><ajax-response><component id="field3" ><![CDATA[<input value="" name="field" id="field3"/>]]></component></ajax-response>

      Attachments

        1. showcase.zip
          45.11 MB
          Łukasz Ludwa
        2. showcase_simplified.zip
          31 kB
          Maxim Solodovnik

        Issue Links

          Activity

            People

              solomax Maxim Solodovnik
              lludwa Łukasz Ludwa
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: