What about to build a Tapestry component named stackevent built on dojo.event around??
<span jwcid="@tacos:Stackevent" direction="before"
targetcomponent="ognl:myAjaxDlnk" targetmethod="onclick"
functionname="foofunc"/>
Stackevent.scrpt should contain something like :
var ${StackeventId} = {
before : function (invocation) {
var result = false;
if (${functionname}(invocation)) {
result = invocation.proceed();
}
return result;
}
after : function (invocation) {
var result = false;
if (invocation.proceed()) {
result = ${functionname}(invocation);
}
return result;
}
};
dojo.event.connect("around",
dojo.byId('${myAjaxDlnkId}'),
'${targetmethod}',
${StackeventId},
'${direction}');
More or less.....
What do you think about ?
Do you think is it useful, do you want me to code it ?
Let me know....
Ciao,
kiuma
- [Tacos-devel] dojo.event proposal Andrea Chiumenti
- Re: [Tacos-devel] dojo.event proposal Jesse Kuhnert
- Re: [Tacos-devel] dojo.event proposal Andrea Chiumenti
