Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2726

Ajax update fails because of invalid XML characters (like )

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.1.7
    • Fix Version/s: 4.1.7
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      Firefox 3 on Fedora 10

      Description

      Ajax update fails because of invalid XML characters, but same time rendering is ok during normal request.
      Tapestry should allow an easy way to handle this characters, or even remove them.

      Sample.html:
      <html jwcid="@Shell" title="Bu" debugEnabled="true">
      <span jwcid="@Body">

      <span jwcid="@DirectLink" listener="listener:toggle" updateComponents="zz">Show</span>

      <div jwcid="zz@Any">
      <span jwcid="@If" condition="ognl:visible" renderTag="false" >
      <span jwcid="@Insert" value="ognl:message" />
      </span>
      </div>

      </span>
      </html>

      Sample.java:
      package tinread;

      import org.apache.tapestry.annotations.*;
      import org.apache.tapestry.html.BasePage;

      public abstract class P1337 extends BasePage {

      @Persist @InitialValue("false")
      public abstract boolean isVisible();
      public abstract void setVisible(boolean v);

      public String getMessage()

      { return "Bad Message \u001f"; }

      public void toggle()

      { setVisible(!isVisible()); }

      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              developster Octavian Ciubotaru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: