Tapestry
  1. Tapestry
  2. TAPESTRY-1604

Attributes of elements do not have entity values quoted (including the " character itself) resulting in invalid markup

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.5
    • Fix Version/s: 5.0.6
    • Component/s: None
    • Labels:
      None

      Description

      Simple example to demonstrate. The initial value of fullName in the bean has a couple of quotes in it. These are written directly to the HTML output instead of being turned into " entities.

      import org.apache.tapestry.annotations.Persist;

      public class Example {

      @Persist
      private MyBean myBean;

      public MyBean getMyBean()

      { return myBean; }

      public void setMyBean(MyBean myBean)

      { this.myBean = myBean; }

      }

      public class MyBean {
      private String fullName = "Fred \"Fredmeister\" Flintstone";

      public String getFullName()

      { return fullName; }

      public void setFullName(String fullName)

      { this.fullName = fullName; }

      }

      Example.html:

      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
      <body>
      <t:beanEditForm object="myBean" />
      </body>
      </html>

        Activity

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            David Peterson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development