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]

Reply via email to