Hi,
If I bind a model node/attribute (from view context) to model node/attribute (of Controller context) and then assign the view context to UI elements in the View, they are being rendered read-only at runtime.
Did anybody come across this situation sometime?
How to go about solving this?
Thanks,
Rajit.
Hi Rajit,
you have to bind an instance of the corresponding model class to the input node of the (custom) controller context. This is usually done in wdDoInit() of the corresponding controller:
wdContext.node<yourInputNode>().bind(new <yourInputModelClass>());
If the model node doesn't contain at least one "element", UI elements which are bound to mapped nodes/attributes of a view controller context are displayed readonly.
Regards
Stefan
Add a comment