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

Ajax update fails because of invalid XML characters (like )

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.7
    • 4.1.7
    • tapestry-core
    • None
    • 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

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

            Dates

              Created:
              Updated: