-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am reading some code, in the window class, I am seeing
public void afterCompose() {
Components.wireVariables(this, this);
Components.addForwards(this, this);
}
and some method of the form:
onMethodName$ObjectId
In the controller class, where the apply points to, I am seeing many
onMethodName methods.
To me, it looks like the window class has some responsibility of the controller, and the main controller handles most of the jobs.
My questions is:
1. which gets executed first?
2. no methodname$objectid form event handler accepted in the controller specified by apply clause, is it true?
3. what is the recommendation of how to split up the controller job between window class itself and the controller pointed to by apply clause?
Thanks
@wyu
Hi wyu, i'm not sure what's the window class & controller class means, but you can reference ZK Composer first.
Both onMethodName$ObjectId and onMethodName method are the same way to declare a event handler, i didn't
test which will execute first, cause i don't think we should write codes at two different places in the same action.
/Joy
Asked: 2009-12-11 18:51:51 +0800
Seen: 157 times
Last updated: Dec 14 '09