cancel
Showing results for 
Search instead for 
Did you mean: 

Methods in the Component controller

Former Member
0 Kudos

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

View Entire Topic
PradeepBondla
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks both of you!