on 07-29-2008 1:47 PM
Hello,
When is better call a method in the component controller, than run only a viewu2019s method?
In other words, what kind of methods should to be in the component controller and what kind of methods should to be in the view?
Could you give me some examples?
Regards
Janeth
Hi,
All the methods which deals with business logic, calculations, repeated methods for all views will be written in component controller.
for example All the model related methods you will write in component controller.
Actually in view you should not write any method which deals with business logic,it should contain only presentation logic. you will just call the methods in component controller here.
you have to max utilize the existing methods doInit(), doModify() and also some actions like onSelect, onSubmit which deals with view controller.
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.