Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Thiago H de Paula Figueiredo
On Wed, 23 Jan 2013 13:54:58 -0200, Peter Farkas wrote: Thiago H de Paula Figueiredo wrote I'm sorry, but you're wrong here. It has absolutely nothing to do with loops. Nothing. The issue, as I've said before, was not passing a parameter in an later AJAX render. The first render, a full page

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Peter Farkas
Thiago H de Paula Figueiredo wrote > I'm sorry, but you're wrong here. It has absolutely nothing to do with > loops. Nothing. The issue, as I've said before, was not passing a > parameter in an later AJAX render. The first render, a full page one, > passed the parameter correctly. A second on

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Thiago H de Paula Figueiredo
On Wed, 23 Jan 2013 06:03:33 -0200, Peter Farkas wrote: Thanks a lot, Thiago! Yes, passing the child as a context parameter fixes it. ;) I think Tapestry does try to figure out the component parameters for a partial update, but for loops, it can't. I'm sorry, but you're wrong here. It

Re: Null pointer exception when updating a component in a loop

2013-01-23 Thread Peter Farkas
Thanks a lot, Thiago! Yes, passing the child as a context parameter fixes it. In ExecutableRowPair.java: I think Tapestry does try to figure out the component parameters for a partial update, but for loops, it can't. In the loop, the same instance of 'ExecutableRowPair' is rendered multiple ti

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
You said: When rendering the AJAX response, Tapestry tries to evaluate an expression on 'child' (*), but 'child' is null.Why does Tapestry need the value of 'child'? How is it supposed to know? The stack trace says the problem is elsewhere: [ERROR] batch.ViewBatch Render queue error in B

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Peter Farkas
Ok. There are more nested components than necessary, though. ExecutableRowPair.tml: ExecutableRowPair.java: Stack trace (actually the null pointer exception is in ExecutableRowPair): -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when-updat

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
Full stack trace and ExecutableRowPair code component please. On Tue, 22 Jan 2013 16:58:05 -0200, Peter Farkas wrote: I'm try to show a list of components with AJAX zones in a table: An 'ExecutableRowPair' consists of a header row (that's always visible) and a details row, that's load