on 07-20-2007 2:21 PM
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
How is the action parameter named, "element" or "selectedElement"? Why are you mapping to different action parameters?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Armin,
Element parameter is required to know the which node has been selected
at run time so that we can add as many no of sub nodes as we can at run time
and also in this application we have an input field which displays selected file at run time that means if any file is selected that has to display in inputfield.For this purpose we are using another action parameter selectedElement.
so selectedElement parameter enables us to know which file has been selected at run time
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.