Why does BeanEditor do that? To me it sounds like a recipe for confusion! Geoff
On 09/05/2012, at 5:49 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 08 May 2012 16:44:10 -0300, netdawg <net.d...@yahoo.com> wrote: > >> You are right, though, about person being null in both cases - verified. I >> was thinking just total control did that. Both do. However, total control >> seems to need the person=new Person in onPrepareForSubmit. > > Yes. No component knows which is the object being edited and, in addition, a > Form could be editing many objects at the same time. > >> Beaneditor seams to work with or without that null check. So, bottom line, >> there is a >> difference. > > Oops, you're right in this case. BeanEditor does instance the object if it's > null when rendering or handling a form submission. Thanks for the correction. > :) > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org