Skip to Content
0
Former Member
May 13, 2008 at 10:55 AM

Cross-component: Call method of using component from within used component?

24 Views

Hi,

I began diving into cross-component programming.

Meanwhile after having digged into some scenarios some questions came up to my mind that I am not able to answer myself. I would appreciate your help here!

Say we have to components. Comp A uses Comp B (hence, B is a component usage in A)

1) How to make them communicate not on a data level (via context binding) but on a process level, thus...

a) can I call A's method from within B? How is the approach on a general level? - as B can be used from totally different components (like A, A1, A2 ...)

b) perhaps the only way to do this is by firing events? If so, how can I react in A when an event in B (marked as interface event) gets fired? As it seems they do not get registered within A directly...

I guess the question seems to be a bit tricky. Nevertheless, I think there will be plenty of you out there who used to asked them the same questions before and came up with an approach. Would be nice to hear from you.

Best wishes,

Marc @sap1