cancel
Showing results for 
Search instead for 
Did you mean: 

difference between component controller & custom controller

Former Member
0 Kudos

hi

can anyone tell me the difference between component controller & custom controller..

thanks & regards

sri

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

And one more critical difference is , component controller are defined expliciltly in the WebDynpro Phase cycle.. And they have hook methods like wdDoPostProcessing which are accessed as per WD phase model.

Custom controllers do not have these hook methods.. and would simply act as normal class files..

Regards

Bharathwaj

asif_hirani
Active Participant
0 Kudos

Hi Lalitha

This should explain u exact difference in all the controllers ie

View controller

Component Controller ,

Custom Controller

Interface Controller and .Which one should be used in which case .

Controllers are basically of 2 types

1. view controller

2. Custom controllers

View Contollers have both Programmatic as well as visual part visual part . Visual part is the Layout which is responsible for displaying the data and programmatic part is context + Implementation which is responsible for processing the entered Data or Generating the data to be displayed

but generally we use View controllers only for diplaying data ( AS per MVC design paradigm ]

Custom controllers have only programmatic part and no visual part . Views should be dependent on Custom controllers for data and not the other way round .

Default custom controller is called as Component controller and is also Heirrarchically superior to all the controllers. Means this is the first controller in ur Web Dynpro Component to be Instantiated and is assured to be instantiated where as other custom controllers can not be assured in which order they will get get instantiated. so no pre assumptions should be made while writting the code

U can create as many custom controllers as u want but u should be familure with above fact that order in which they get instatiated cannot be assured except for Component controller so u should make no pre assumption of there exsistence

Finally Interface Controller get instantiaed only when u add one web Dynpro Component as Used Web Dynpro Component inside another Web Dynpro component so interface controllers are used for passing data / Receving data from one web Dynpro component to another web Dynpro component

hope now ur clear with all the controllers

Regards

Asif

Former Member
0 Kudos

Hi,

Check this link..

<u>https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f9eb649381</u>

Regards,

Lavanya.G

Message was edited by:

Lavanya Goriga

Former Member
0 Kudos

Hi,

->If u careate any WD project,It contains Component Controller.

->The component controller is also a custom controller that contains the functionality for the entire component. Custom controllers are optional, they are created when you want to modularize the functionality or when you don’t want to load the component controller.

Regards,

Lavanya.G

former_member182416
Active Contributor
0 Kudos

Hi

refer this URL

<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/b9/b82c4142aef623e10000000a155106/content.htm">WebDynpro Controllers</a>

regards

Rajendra