Thanks Thiago, you are very helpful. I tried a cheaper fix, but hacking the T5COnEvent.js file and creating my own version of T5 Components JAR. All I did was add a second parameter to the JavaScript method that is the clientId (elementId). This only allows my dependent select solution to work inside an AjaxFormLoop.
I have another problem now though as I can not seem to be able to have two AjaxFormLoop inside a form. There is only one onAddRow/onRemoveRow method so I can't distinguish which loop is firing the events. &#*$&^...@#&^...@* Thiago H. de Paula Figueiredo wrote: > > Em Thu, 19 Feb 2009 17:44:54 -0300, Elmer Smith > <esm...@venterraliving.com> escreveu: > >> I first thought of somehow using getClientId(). The problem is that I >> need the id in the JavaScript function (the onCompleteCallback one) to >> then try and determine which select put values into. > > I have also needed to know what component fired an event, so I filed > https://issues.apache.org/jira/browse/TAP5-146. You can vote there. The > most votes, the most likely to beee solved. :) > > Another solution, maybe more complicated, would be to write the Javascript > yourself instead of using the @OnEvent mixin. Using Prototype, that > wouldn't be hard. Your JS code would request an URL generated by > ComponentResources.createEventLink(). Maybe you'll need to add the client > id to this URL, maybe not. Your event handler method would receive the id > through its parameter. I don't know if this works, but that's what I would > try to do. ;) > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/Dependent-%3Cselect%3E-implemented-with-%40OnEvent-mixin-%2B-AjaxFormLoop-tp22108985p22187544.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org