Skip to Content
0
Former Member
Apr 25, 2007 at 09:05 AM

Problems with external context mapping

24 Views

Hi ,

I am having the following problems with external context mapping from one WD component to another.

Problem description:

In the <i>Component Interfaces</i> I have defined a WD interface "InfA".

In the <i>interface controller</i> of this compoenent,I have ContextA and attributeA(cardinality 1..1).The contextA is marked as an "Input Element".

Now my webdynpro componentB adds InfA as used component.In componentB I decalre a contextB with attributeB and map it to contextA to set up the external context mapping.

Now I expect that if any webdynpro component implements this WD interface InfA ,he has access to contextA with the data getting filled from contextB.

After i have created the component for the used component I try to fill values in the source node contextB thru this code:

wdContext.currentContextB.setB(value);

But in the runtime I keep getting error nullPointerException for nodeContextB,suggesting that the mapping has not been completed.

Can anyone suggest due to what the error can come ,and, if its a webdynpro bug ,is there a workaround??

Thanks in advance for your help.

Best regards

Sourav