Hi Chris, Just a little suggestion. Because confirm.js depends on prototype I think you should add @IncludeJavaScriptLibrary("prototype.js") to your Confirm mixin.
Thanks for this article Julien ----- Message d'origine ---- De : Luca Fossato <[EMAIL PROTECTED]> À : Tapestry users <users@tapestry.apache.org> Envoyé le : Samedi, 19 Avril 2008, 23h30mn 17s Objet : Re: T5 actionlink, ajax zone and user onclick handler Hi Chris, thank you ! I will read your article and I will try to use the mixin to implement the confirmation dialog for my "delete" actionLink. Give me some days to digest all this stuff and to implement it into my test application ;^) Regards, Luca Chris Lewis wrote: > Hi Lucca, > > I'd been looking for a good example to use to write a wiki explaining > the integration javascript by Tapestry, and your request gave me what I > was looking for. Check out the article here: > http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained (project > source: http://thegodcode.net/tapestry5/jsclarity-project.zip). Apart > from discussing in detail how T5 integrates JS, it shows how to create a > mixin that can be added to link components. The mixin attaches js code > to the component, so that when the link is clicked the user is presented > with a confirmation box. Canceling the box cancels the click, while OK > allows it to proceed as normal. This should be useful for those looking > to add click confirmation functionality, but in your case I'm not sure > if it will help. I ask you to try and see, but the problem will be how > T5 attaches the js handlers for the ajax code (that is, they may fire > before the confirmation code). > > Anyway, I think it will be helpful to those looking for such an > explanation, and I hope it helps you. > > chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités http://mail.yahoo.fr Yahoo! Mail