cancel
Showing results for 
Search instead for 
Did you mean: 

Information on some terms used in Web DynPro

Former Member
0 Kudos

Hi all,

I am kind off new to this Web DynPro.

I am unable to understand the concepts behind component controller, interface controller, used components...

I know what MVC architecture is and how is it applied for Web DynPro, but terms like Interface Controller, Component Controller, used components, component usage group etc are used... i am not too sure what they are..

Any references or a detailed explanation on the same will be beneficial for me.

Regards,

Devashish

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI,

Refer this link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm

following examples gives you hands on experience for your questions

Component Controller

1 | 2 | 4 | 5

Component Controller Context

1 | 2 | 4 | 5

Component Interface Controller

14 | 34

Component Interface View

13 | 14

Component Usage

13 | 14 | 34

Additional reffer this link also

http://help.sap.com/saphelp_nw04/helpdata/en/ee/dd1e3e6217b40be10000000a114084/content.htm

Regards,

RK

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Bharti,

I think this link will help you.

Regards,

Karthick

Former Member
0 Kudos

Hi Bharti,

I sent you the wrong link...

see this.

this link helps u in controllers:

http://127.0.0.1:2883/help/index.jsp?topic=/com.sap.devmanual.doc.user/61/57de3f68d48f15e10000000a15....

This helps u in Used webdynpro components;

http://127.0.0.1:2883/help/index.jsp?topic=/com.sap.devmanual.doc.user/d7/e551cf896c3a49bb87bb4ce38c...

Regards,

Karthick

Former Member
0 Kudos

Hi,

Component Controller and custom controller do not differ much. Component controller is the default controller created when u create the application and the component itself and if u create a separate controller with your own name then its called custom controller.with this controllers u can communicate between the components within the same application.

If you want to communicate between two applications then the interface controllers come into picture.

Used webdynpro components are nothing but just like used models... means if u are using any component within the component then u add it in the used webdynpro components.

Regards,

Karthick

Former Member
0 Kudos

Hi,

I had the same problem when I first started learning Web Dynpro - couldn't get my head around all the different "controllers". However, once you start to understand what's what, it's not so confusing any more.

Controllers are the Java classes where you do your server-side processing.

There are three types of controllers:

- Custom Controllers

- View Controllers

- Component Interface Controllers

In the simplest Web Dynpro scenario, you create a component, and then create an "application" to get access to that component.

When you create a component, a Component Controller is created for you. This controller is just a Custom Controller. You can create as many Custom Controllers as you wish, if you don't want to do all your processing in the default Custom Controller (the Component Controller).

Each View you create has it's own View Controller. View Controllers are similar to Custom Controllers, but have an additional static function: wdDoModifyView(), which is called immediately before the view is generated, and allows you to optionally modify view elements. The View Controller is the only controller which has direct access to view elements.

If your component uses another component, then that used component is called the "Used Web Dynpro Component". The "master" component can only call methods and access context entities that are exposed in the used component's "Component Interface Controller". You cannot directly access a used component's Custom Controllers. If your component is NOT going to be used by another component, then you don't have to worry about the Component Interface Controller.

Hope all this helps clear your confusion a bit.

Regards,

Karthick

Former Member
0 Kudos

Hey that made me understand quite a lot! thanks

But my doubt increases when i see the Diagram view...

view, componemt/custom controller and model.. these 3 belong to 1 component (i hope i am right!)...

then if this component uses another component, then it has to access Interface Controller of that component (Right??)...

So why are Interface Controller and used WDP Comp in 2 separate places....

Former Member
0 Kudos

Hi Devashish,

Please go through the sample applications in WebDynpro !!

These turorials will help you understanding the ComponentInterface controllers and ComponentControllers.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro sample applications and tutorials.htm#program

In the above link select "Programming Model" and you can see the turorials for the above

Regards, Anilkumar

Former Member
0 Kudos

It says 503 - Service Unavailable..

Are you sure that URL is correct?

Regards,

Devashish