Skip to Content
Former Member
Jul 07, 2004 at 10:16 PM

Interfaces to Components



I'm currently creating a component that I would like to reuse in other components. I know the way to include this component is via the interface view of the component, but how do I create implementation specific code depending on which component I include the interface in?

For example, I have component X and I want to use X in components A and B. I also have method 1 in component X, but depending on if I include the component in A or B determines what the implementation of method 1 should be. I have not figured out an elegant way to do this yet, and the "Implemented Interfaces" under the component interface looks promising, but I can't get that to work.

I might be entirely off on how I'm developing my overall Web Dynpro application. The idea I'm using is creating a bunch of components to reuse and then consolidating all of the interfaces in one big component and make that the final application. Is this the correct approach?