Added to JIRA: https://issues.apache.org/jira/browse/TAP5-1527
On 10/05/2011, at 9:39 PM, Geoff Callender wrote: > Nope, it's like Rich said: onPrepare() is being called twice during the > render phase, and then the object disappears! > > Yet, when you replace BeanEditForm with a Form around a BeanEditor it works > correctly: onPrepare() is called once during the render phase and the object > doesn't disappear: > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/input/morecontroledit1/1 > > You can see the java code is almost identical in the two examples but the > result is different. > > Geoff > > On 10/05/2011, at 8:55 PM, Geoff Callender wrote: > >> It looks like a bug - onPrepare() is not being called during render of >> BeanEditForm. For example, this page should have rendered Person 1: >> >> http://jumpstart.doublenegative.com.au/jumpstart/examples/input/edit1/1 >> >> I'm sure it worked in 5.1.0.5 but doesn't in 5.2.5. >> >> Anyone else seeing this? >> >> Geoff >> >> >> On 23/03/2011, at 8:43 AM, Thiago H. de Paula Figueiredo wrote: >> >>> On Tue, 22 Mar 2011 18:33:16 -0300, Rich M <rich...@moremagic.com> wrote: >>> >>>>> Why don't you use onPrepare() instead of onPrepareForRender()? >>>> Same result, unfortunately. I switched to onPrepareForRender eventually >>>> because onPrepare gets called 2-3 times during the page lifecycle while >>>> onPrepareForRender only once. >>> >>> Once for rendering, once for form submits. >>> >>>> In onPrepare: tp = person; name = person >>>> In onPrepare: tp = person; name = person >>>> tp: id = person; name = person >>>> tp2: id = null; name = null >>>> tp3: id = person; name = person >>> >>> Strange . . . >>> >>> -- >>> 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