Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
5.2.0
-
None
-
None
Description
Using the BeanEditor parameter "add" always results in an exception. (T5.2.0-SNAPSHOT)
steps to reproduce:
- create a new project with mave archetype
- change pom.xml to T5.2.0-SNAPSHOT
- add the files below.
- start the server
- goto TestEx page
- just click submit
- results: "Bean editor model for com.test.pages.TestEx$UserLogin already contains a property model for property 'addTest'"
Condensed example to reproduce:
public class TestEx {
@Property private UserLogin userLogin;
@Property private String addTest;
public static class UserLogin {
private String userName;
public UserLogin() {}
public String getUserName()
public void setUserName(String userName)
{this.userName = userName;} }
}
TestEx.tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<body>
<t:form>
<t:BeanEditor object="userLogin" include="userName" add="addTest" >
<t:parameter name="addTest">
<t:label for="addTest" />
<t:passwordField t:id="addTest" value="addTest"/>
</t:parameter>
</t:BeanEditor>
<t:submit />
</t:form>
</body>
</html>