Skip to Content
0
Former Member
Nov 21, 2008 at 05:34 AM

Binding value node elements to model node elements

29 Views

Hi,

I have a value node in my controller context which also has sub nodes inside it.

There is also a model node in controller context which has all the sub nodes and attributes same as the value node.

The cardinality of both the nodes as well of the sub nodes is same as well as the name of attributes also same.I want to bind the data present in the value node to the model node.

I tried to used the coding :

wdContext.node<model node name>.bind(wdContext.node<valuenode name>.getModelCollection());

But while running the appliation I am getting the error:

Cannot fill a ModelNode automatically. Change the cardinality or use a supply function

Can somebody help me with it.