Methods in the Component controller
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?
pradeep bondla replied
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.