cancel
Showing results for 
Search instead for 
Did you mean: 

Reuse of controller logic / example by Bertram Ganz

Former Member
0 Kudos

Hello,

In the examples of Bertram Ganz "New Web Dynpro Java Tutorial - Component Interface Definitions in Practice" Views and Model can be reused.

But how can i reuse the controller logic? I think, i can not simple extend the contoller like class in OO and rewrite some events.

regards

Paul

Accepted Solutions (1)

Accepted Solutions (1)

thomas_szcs
Active Contributor
0 Kudos

Hi Paul,

Inheritance is not supported for controllers, but it's possible for the assistance class. There, reuse is also possible by assigning the same assistance to different components. Sharing a single assistance class instance between different components is possible as well by specifying the pointer to the assistance class as a parameter while calling create_component().

Best regards,

Thomas

Answers (0)