Author Login
Post Reply
Hi,
I'm trying to use the BeanEditor in a t:form which seems to work fine until
I use the "add" parameter. I've read through the documentation and I'm just
not sure what i'm doing wrong. The form renders fine but no matter what I
do when I submit the form it always throws this exception: "Bean editor
model for User already contains a property model for property
'confirmPassword'."
Thank you for any help or suggestions in advance!
Here is my simple test case:
Test.tml:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd">
<body>
<t:form>
<t:beaneditor object="user" add="confirmPassword" >
<t:parameter name="confirmPassword">
<t:label for="confirmPassword" />
<t:passwordField t:id="confirmPassword" />
</t:parameter>
</t:beaneditor>
<t:submit />
</t:form>
</body>
</html>
Test.java:
public class Test {
@Property private User user;
@Property private String confirmPassword;
}
User.java:
public class User {
private String email;
private String password;
public User() {}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
}
--
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)