cancel
Showing results for 
Search instead for 
Did you mean: 

reg : object creation for controller and view ?

Former Member
0 Kudos

hi friends....

i am new to WDA and objects...

please explain me..

when i create the web dynpro component one interface is automatically created as IF_COMPONENTCONTROLLER for component

IF_MAINVIEW for view

IF_WINDOW for window

correct me if i am wrong

suppose if i want to reuse class, i want to create object... like wise

if i want to reuse interfaces, i want to create object.

but in this case..for eg (IF_COMPONENTCONTROLLER, IF_MAINVIEW ) where we are creating object...?

no need to create object ?

regards

deva

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Web Dynpro generates objects behind the scenes for you. So as you change the context or add attributes to the controller or view objects, these interfaces can be regenerated and extended to represent the structure you are modeling.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

>but in this case..for eg (IF_COMPONENTCONTROLLER, IF_MAINVIEW ) where we are creating object...?

no need to create object ?

No you don't have instantiate any of the objects. Think of Web Dynpro as a modeling layer implemented in ABAP Objects, but sitting on top of the Object Oriented constructs. You still have some of the benfiits of OO - like event registration, inheritance, methods, etc - but a lot of the OO setup is done and maintained by the framework for you. So although each section of Web Dynpro - the component, the controllers, contexts, views, etc - are all technically ABAP Object instances, you don't have to manage the objects directly.