Re: Adding form elements with Javascript

2006-05-22 Thread Sam Gendler
As far as I know, the only Tapestry-approved way of doing this is to do a round-trip to the server - either to re-render the entire page, or to re-render a section of the page via Tacos' ajax mechanism. That keeps the state of the page on the server and the html in sync so you don't get the stale

Re: Adding form elements with Javascript

2006-05-20 Thread Cliff Zhao
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 interjec

Adding form elements with Javascript

2006-05-20 Thread Paul Cantrell
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 -