Author Login
Post Reply
It looks like what you have should work. This may represent a
regression, based on the retooling of the
ComponentClassTransformWorker code; it looks like the BeanEditForm (or
BeanEditor) is possibly holding onto its instance of BeanModel from
one request to the next, rather than starting from scratch on each
request. I haven't seen this myself, and it seems like something that
would be tested by the Tapestry integration test suite ... but still,
this seems odd.
On Thu, Mar 18, 2010 at 9:23 AM, Joe Klecko <theG0dF0dder@(protected):
>
> 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 {
> @(protected);
> @(protected);
> }
>
> 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;}
> }
>
> --
> View this message in context: http://old.nabble.com/T5.2.0-SNAPHOT%3A-newbie-exceptions-submitting-form-with-BeanEditor-tp27947909p27947909.html
> 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)
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)