Hi,
I am narendra. I am facing problem when i was exceuting sample webdynpro
application (construting a Recursive and loadable webdynpro tree).
It shows that java.lang.NullPointerException is occured when i click the tree nodes.
There is a parameter mapping in this application which can map the tree node elements selected at run time with the action event parameters.
I think that the node which we select at runtime must not be able to passing to the action event parameters.
Here I am giving code of parameter mapping which might be leads to the problem.
public static void wdDoModifyView(IPrivateTreeView wdThis, IPrivateTreeView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
if (firstTime) {
IWDTreeNodeType treeNode =
(IWDTreeNodeType) view.getElement("TheNode");
/* parameter mapping from parameter "path" to
parameter "selectedElement"
*/
treeNode.mappingOfOnAction().addSourceMapping(
"path",
"selectedElement");
/* parameter mapping from parameter "path" to
parameter "element".
*/
treeNode.mappingOfOnLoadChildren().addSourceMapping(
"path",
"element");
}
//@@end
}
can anyone help me?
Thanks in advance,
Narendra.M