Let Tapestry renders all the components. You only use Javascript to make them visible or invisible. I think that this is the most straight forward way, otherwise you have to manipulate the rewind cycle, which is error-prone.
On 5/20/06, Paul Cantrell <[EMAIL PROTECTED]> wrote:
Sorry to interject an actual Tapestry question into all the exciting talk about logos and GWT! I have a form with a bunch of text fields inside a @For. I want my page to have a "new item" link that uses Javascript to add a new element to the form. My Javascript works great on the client -- new TextFields appear just fine. But this adds unexpected components to my form, and of couse I get a stale link error. How do I prevent the stale link? Do I use Javascript to manually modify the hidden field that lists the components in the form? i.e. use Javascript to turn this: <input type="hidden" name="formids" value="items,Hidden,TextField,Submit"/> ...into this: <input type="hidden" name="formids" value="items,Hidden,TextField,Hidden,TextField,Hidden,TextField,Submit"/ > ...? Yuck! Is there a better way? I'm sure this must have been covered on the list or in the docs, but I searched and couldn't find it. Any pointers in the right direct would be welcome. Cheers, Paul _________________________________________________________________ Piano music podcast: http://inthehands.com Other interesting stuff: http://innig.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]