Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-12-09 Thread shaan
I've the same problem; what should we store as ID for the newly created rows so that during form submission the fields get overwritten. Any help would be appreciated. Thanks, Shaan -- View this message in context: http://tapestry.1045711.n5.nabble.com/ajaxformloop-syncValue-is-never-calle

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Mark
On Thu, Jul 14, 2011 at 11:06 AM, Ray Nicholus wrote: > I don't see how this is not a Tapestry issue.  My code is pretty simple. >  Neither ajaxformloop nor loop sync values, for rows added after the form > has rendered, back to the server.  All rows created during execution of the > loop are sync

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Ray Nicholus
I don't see how this is not a Tapestry issue. My code is pretty simple. Neither ajaxformloop nor loop sync values, for rows added after the form has rendered, back to the server. All rows created during execution of the loop are synced. I'm using tapestry 5.2.6. On Thu, Jul 14, 2011 at 10:57 A

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Mark
On Thu, Jul 14, 2011 at 8:16 AM, Ray Nicholus wrote: > It turns out that my encoder is not the problem.  In fact, this appears to > be an issue with Tapestry.  I was not using the id from Hibernate and I > verified beforehand that my encoder was properly coded.  I had a couple > other people look

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Robert Zeigler
This is surprising to me. I have plenty of ajax form loop code that adds new (even transient) objects and things work as expected. What version of Tapestry are you using? Robert On Jul 14, 2011, at 7/148:16 AM , Ray Nicholus wrote: > It turns out that my encoder is not the problem. In fact,

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-14 Thread Ray Nicholus
It turns out that my encoder is not the problem. In fact, this appears to be an issue with Tapestry. I was not using the id from Hibernate and I verified beforehand that my encoder was properly coded. I had a couple other people look into this as well, and it appears that Tapestry is not able to

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-13 Thread Mark
How is your encoder identifying the objects? Is it using the id from Hibernate (or whatever you are using)? If so, the value is id is going to be 0 so the encoder isn't going to be able to figure out which value to retrieve. This would explain why it works for objects that are in the db (and have

Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-07-13 Thread Ray Nicholus
Anyone? I'm returning a new unpersisted entity from my addrow listener, modifying it in the UI, then clicking submit. Ajaxformloop never attempts to update the values server-side for this new row. On Tue, Jul 12, 2011 at 7:27 PM, Ray Nicholus wrote: > Note that I am using a custom value encode

ajaxformloop: syncValue is never called for added rows on form submit

2011-07-12 Thread Ray Nicholus
Note that I am using a custom value encoder. When I click submit, the values in the rows that were rendered during form load are synced, resulting in calls to getValue of my value encoder, but this does not happen for rows added via the addrow event.