Re: For loop Rewind problem

2006-12-14 Thread jiju
gant >> /to have the js-helper functions that were mentioned, but... this is, at >> least, functional. :) >> >> Robert >> >> > > -- View this message in context: http://www.nabble.com/For-loop-Rewind-problem-tf2820424.html#a7885990 Sent from the Tapestry -

Re: For loop Rewind problem

2006-12-14 Thread andyhot
Actually i remember thinking (or reading about) yet another way.. Make the loop have 10 more rows, and render them hidden (display:none) Then, the js can make them visible on demand. Robert Zeigler wrote: > One other way to do this is to have a (tapestry component) hidden form > field (make sur

Re: For loop Rewind problem

2006-12-14 Thread Karthik N
yet another option on similar lines is to have display=none for a bunch of fields that are actually there in your HTML form and rendered via tapestry, but show up only when the user clicks on the button to add a row. ( of course that would mean that you cannot support "infinite" adds! ) On 12/14/

Re: For loop Rewind problem

2006-12-14 Thread Robert Zeigler
One other way to do this is to have a (tapestry component) hidden form field (make sure "raw" is set to true). Then when you submit, you can use js to save the information from the js-added form fields into your hidden field, and parse it server-side. It would be much more /elegant /to have th

Re: For loop Rewind problem

2006-12-14 Thread andyhot
yep, there's no nice Tapestry way in what you're trying to do, esp. if you're trying to *avoid ajax*. Incidentally, this was the most interesting question i got asked while presenting Tapestry in out local JUG. It got me thinking of adding a few js helper functions that would know how to add new f

Re: For loop Rewind problem

2006-12-14 Thread Karthik N
also you can consider using Tacos if you're wed to tapestry 4.0.x On 12/14/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Tapestry traces the rendered components and uses this info on rewind - its better not to temper with that. If you need JS magic, try using T41 - using Ajax this should be possi

Re: For loop Rewind problem

2006-12-14 Thread Ron Piterman
Tapestry traces the rendered components and uses this info on rewind - its better not to temper with that. If you need JS magic, try using T41 - using Ajax this should be possible, though only straight-forward for jesse and other enlightend developers :) Cheers, Ron Jiju Mathew wrote: Hi All

For loop Rewind problem

2006-12-14 Thread Jiju Mathew
Hi All, I have a list of contacts in MyPage class.Tapestry rendered all the contacts in the list asTextFields using @For Loop component ,I have modified some of the contact details and submit ,its working fine. But after the page is rendered if I am adding one more row to the list using javasc