on 04-01-2008 5:52 AM
Hi All,
What are the Diff Between Custom & Component Controllers?
Regards,
Ravi.
Hi Ravi,
a custom controller is similar to a component controller.
One might want to use custom controllers for very big web dynpro components.However, from a design perspective it might be better to split a big web dynpro component in several smaller components instead.
One does need custom controllers when one wants to use explicit component configuration. Then the custom controller will be marked as "configuration controller".
a component controllers is
This controller is automatically created during the component creation and contains a context, events, and methods.
Thanks,
Prakasam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Custom and Component controller both almost serve same purpouse. The following are some advantages of custom controller.
1. For logical grouping of attributes/methods, special functions or data for a certain subset of views of a component
2. We can create any number of custom controllers but one of them can be set as Configuration controller. This can be used to influence the appearance and behavior of various UI elements (Other than implicit settings) of a Web Dynpro component. These can be implemented through additional attributes in the context of a special custom controller the Configuration Controller.
Regards,
Sravan Varagani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
Custom controller is also same as Component controller. The Custom controller is mainly used to reduce the workload of the component contorller.
In real time, component contoller consist of lot of methods and codings. So custom controller is mainly used to reduce the load.
Then it has some advantages like,
Reuse:- Create a custom controller if we have identified a reuse case for a specific unit of code required by several other controllers within the component.
Task separation:-To avoid placing too much coding in the component controller.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.