You can override portions of
org.apache.tapestry.services.impl.DefaultResponseBuilder to bind window
loading things they way you want.

Really the window loading stuff happens with dojo.addOnLoad() in the current
repo though.

On 10/26/06, Jun Tsai <[EMAIL PROTECTED]> wrote:

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




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to