Skip to Content
Former Member
Jul 29, 2005 at 02:37 PM

Context-Model binding


Hi experts,

I am having some trouble with the binding between my controller context and the model objects. My context model nodes are the following (imported from a Web Service):


--KES (Model Node)


Request (Model Node, singleton, selection 0..1)


Metadata (Model Node, singleton, selection 0..1)


creator (Model attribute)

In wdDoInit() of the controller, I initialize my model objects as follows:

Request_KeywordEnhancerWSViDocument_generateMetadataComSapMltKesKESRequest req 	 =
new Request_KeywordEnhancerWSViDocument_generateMetadataComSapMltKesKESRequest();
ComplexType_KESRequest request  = new ComplexType_KESRequest();
ComplexType_DCMetadata metadata = new ComplexType_DCMetadata();

Furthermore, I have bound the Request model node to my view controller. Setting model attributes for the Request node is no problem, but I cannot access those in the Metadata node. This only works if I add an element to the node collection or explicitly bind my metadata object to the model node. Then, however, the relation between the Request and Metadata model objects is broken and I cannot properly execute the Web Service.

I've been stuck on this matter for hours now and have tried just about everything. I'd appreciate it if someone could give me a hint. Is this a matter validating/invalidating the context node?

Any help would be greatly appreciated! Thanks!