Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
5.0.5
-
None
-
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>