I find tapestry produce the script

dojo.event.connect(window, 'onload', function(e) {
 dojo.require("tapestry.form");tapestry.form.registerForm("AForm");
....
});


I want to do something after onload.but I find
dojo.event.connect("after",window,'onload',this,"testFun"));

I find my testFun function called before tapestry onload function.

If I change tapestry onload as
dojo.event.connect("before",window, 'onload', function(e) {

  dojo.require("tapestry.form");tapestry.form.registerForm("AForm");
   ....
});

works fine.

How to custome this?




--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net

Reply via email to