cancel
Showing results for 
Search instead for 
Did you mean: 

mapping

Former Member
0 Kudos
51

Hi All!

Is it mandatory to map view context to

component controller context ?

When do we really need a component controller context ?

Regards

Sas

View Entire Topic
Former Member
0 Kudos

Hi,

As Webdynpro is based on the MVC.

Its always good to have your data flow from the controller to the views, so that you can make your views lean and get the advantage of maximum reusability.

Now to your questions

Is it mandatory to map view context to

component controller context ?

No, it all depends on the way how you want your application data to be handled, But its always a good practice to make use of the controller to do the data handling and do the UI related things in the views.

When do we really need a component controller context ?

A simple example is when multiple views need the same data, if you try to this at view level you need to do the same at both views, instead move the code to the controller and map them to diff views

Hope its clear

Regards

Ayyapparaj