Michael,

Am 01.09.2011 21:46, schrieb Michael Gentry:
I have an AjaxFormLoop with an AddRowLink in it.  I was wondering if
anyone had an elegant way to do a client-side callback when a row is
added?

No, not an elegant one, I'm afraid. When I wanted a "callback" to be executed after the adding of a row, I overrode the Tapestry.FormInjector javascript to fire a DOM event on the new element.

Also, would it make sense for AddRowLink to
have a t:callback="myJavaScriptFunction" feature?

I rather like the event approach as I think it is more flexible. If the FormInjector fired an event, you'd be free to observe it with 0..n listeners.

Regards,
Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to