Author Login
Post Reply
Hi Joe/Howard,
I have ran into this same problem a while back and oddly enough (just the
other day) I finally got around to filing a JIRA
(https://issues.apache.org/jira/browse/TAP5-1051). The only help/clue I can
give to the T5 team is that the BeanEditor was working at one time in
T5.2.0-SNAPSHOT and I'm not sure when the problem began but it was several
weeks ago (Howard, I'm pretty sure it started before the new
ComponentClassTransformWorker code(which is a great improvement BTW) ).
My resolution unfortunately, was to switch the version of T5 I was using to
T5.1.x. I Hope this helps.
Cheers,
B
Howard Lewis Ship wrote:
>
> 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)>
> wrote:
>>
>> 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)
>
>
>
--
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)