cancel
Showing results for 
Search instead for 
Did you mean: 

Diff Between Custom & Component Controllers?

Former Member
0 Kudos

Hi All,

What are the Diff Between Custom & Component Controllers?

Regards,

Ravi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

former_member515618
Active Participant
0 Kudos

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

Former Member
0 Kudos

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.