Oh yeah, re-looking, the clue was in the stacktrace: > Render queue error in BeginRender
meaning you needed to load your entity sometime before that phase - i.e. setupRender() I don't what was causing the NPE though, loading your entity in onPrepareForRender() should have been okay. Looks like it's something do with T5's JSR-303 but I've never used it myself. Dunno if anyone else has any ideas? Steve. On 22 October 2011 23:50, Julien Martin <bal...@gmail.com> wrote: > Steve, > It works with @SetupRender > Thanks!! > > 2011/10/22 Steve Eynon <steve.ey...@alienfactory.co.uk> > >> > Thanks for your reply Steve, >> >> No worries, I know how frustrating it can be when no one answers! >> >> > I was not able to find any such EventConstant >> >> SetupRender is not an component event, it's a um, render phase! See here: >> http://tapestry.apache.org/component-rendering.html >> >> Essentially rename your method to void setupRender() - note how it >> doesn't begin with onXXX - or annotate it with @SetupRender >> >> The Form generates the PREPARE_FOR_RENDER event during its beginRender >> phase so I'd be surprised if it makes a difference - but you never >> know. I tend to do all my setup in the setupRender() and maybe a >> little in onPrepareForSubmit(). >> >> > My ChildMinderAccount is a JPA entity >> >> Ah - okay. I'd look around this area - I don't know much about JPA but >> I'd check stuff like your transaction boundaries to ensure your obj is >> fully inflated after it's loaded. >> >> Steve. >> >> On 22 October 2011 21:50, Julien Martin <bal...@gmail.com> wrote: >> > Thanks for your reply Steve, >> > >> > I am also surprised because I am actually trying to follow an example >> taken >> > from Igor's book. My ChildMinderAccount is a JPA entity that extends an >> > abstract Account class. >> > >> > Regarding your suggestion of using the setuprender phase, I was not able >> to >> > find any such EventConstant in the Tapestry API... >> > >> > Regards, >> > >> > J. >> > >> > 2011/10/22 Steve Eynon <steve.ey...@alienfactory.co.uk> >> > >> >> Nothing there I can see that's obvious... What does your >> >> ChildminderAccount look like? >> >> >> >> Creating it in the PREPARE_FOR_RENDER event should be fine - but you >> >> could always try creating it the SetupRender() render phase - see if >> >> it's any different. >> >> >> >> Steve. >> >> >> >> >> >> >> >> On 22 October 2011 20:50, Julien Martin <bal...@gmail.com> wrote: >> >> > ChildminderAccount >> >> >> >> --------------------------------------------------------------------- >> >> 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 >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org