Community
Participate
Working Groups
Build Identifier: 0.7.0.v201110180903 1) Open the attached H2.egl with VE. 2) In the H2.egl, I initialized the intField with 30. 3) The expectation is that the value of DojoComboBox will be initialized to 30 when opening it by VE. I set this defect severity to major, because this is the general way to set the default value of DojoComboBox, now it does not work. Reproducible: Always
The problem is that the generated js does not utilized the MVCView annotation of the widget(in this test case DojoComboBox). The generated js file of line 67 - 71 is wrong: this.myRec1_intField_controller.publishHelper = new egl.egl.jsrt.Delegate(this.myRec1_intField_controller, function(/*String*/ s ) { try { this.eze$$parent.myRec1_intField_comboBox .setText(s);} catch(e) { throw egl.createRuntimeException( "CRRUI2002E", [ "publishHelper this.myRec1.intField", e.message, egl.lastFunctionEntered ] ); }; }); this.myRec1_intField_controller.retrieveViewHelper = new egl.egl.jsrt.Delegate(this.myRec1_intField_controller, function() { try { return this.eze$$parent.myRec1_intField_comboBox .getText();} catch(e) { throw egl.createRuntimeException( "CRRUI2002E", [ "retrieveViewHelper this.myRec1.intField", e.message, egl.lastFunctionEntered ] ); }; }); In which, the setText function should be setValueAsText; And getText function should be getValueAsText as they are specified in the DojoComboBox.egl MVCView annotation @MVCView{ retrieveViewHelper = getValueAsText, publishHelper = setValueAsText },
Setting to P1 since MVC is part of 0.7
Fixed. Ji Yong's analysis was correct; MVCTemplate was emitting the default impls for publish/commit because it was looking for the MVCView annotation using the wrong name.
Verified in 0.7.0.v201110272101