Skip to Content
author's profile photo
Former Member

ref. "Creating Trees in Web Dynpro (12)" -> need help

Hello dear colleagues,

While trying to work through the sample tutorial "Creating Trees in Web Dynpro (12)", I'm forced to some problems.

I'm using NW-developer-studio 2.0.5.

I went through the tutorial up to line 12 and everything went fine, till now.

While implementing the methods addChildren(...) page 13 and the following code lines I get the following error:

IPrivateTreeView.ITreeNodeElement cannot be rsolved or is not a type. There is another Class

IPrivateTreeView.ITreenodeElement existing.

Additionally there are no functions getText(...), getIsExpanded(...) (wich should refer to the attribute values of the context, I think...) but there are functions getAttributes(String arg0)...

child = parent.nodeChildNode().createTreeNodeElement(); is not working, too

child = parent.node().createElement() works after having transformed parent from IPrivateTreeView.ITreeNodeElement to IPrivateTreeView.ITreenodeElement.

There is an endless list of other errors and not found classes (by the way: I know how to organize imports) but it would be very helpful soluting these problems. Regards and thank's Robert.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Jul 29, 2004 at 04:32 PM

    Hi Robert,

    the names of the nodes you create in a controller context are influencing the generation of the corresponding controller classes.

    If you create a node named "TreeNode", you'll get "ITreeNodeElement", if you name it "Tree<b>n</b>ode", you'll get "ITree<b>n</b>odeElement".

    I guess you copied and pasted some code from the tutorial, where the node is named "TreeNode", while your's name is "Treenode".

    The missing attribute getters and setters indicate, that the corresponding attributes are missing in the corresponding context. Please recheck that.

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded