difference betweencomponent controller,Custom controller&Interfacecontrolle
what is the main difference b/w component controller , custom controller & interface controller.
i want to know the difference of these three in the real time environment.
if anybody explains me with any simple example then it is great help to me....
Koti Reddy Chimalamarri replied
Hi Suresh ,
Component Controller and Custom Controller are more or less the same. Both are related to a particular component in the webdynpro application you create.
For each component of yours there will be a component controller, were in you can define context variables and methods, events etc.. This usefull while using models.
Simple example where we can see this is, when you create global context variable in this controller and map this variable to the view controller context variable of different view, which enables you to pass the value of the variable from one view to another.
They also have the same the function but as the name suggest there function can be customised. That is we can have more than one custom controller for a component. This is usefull when we need to create seperate execute methods for inputs from model import( Both webservice and rfc call).So you can seperate each other. Example is there in the more sample codes and application section.
There is only one interface controller for a component. It is mainly used when we need to communicate between two components.There is sample application for communication between two components in the sample codes and application section.
I think this is enough to get an idea on the difference between each of controllers.