Community
Participate
Working Groups
Build Identifier: 0.7.0.v201111060901 1) Set up the workspace with the attached project. 2) Open the formWithValuesAndOneViewError.egl with VE, you will find CRRUI2094E error. @ Job.schedule() [CRRUI2002E] d is null retrieveModelHelper this.aModel.aTime 中发生了错误:publish [CRRUI2094E] 以下是导致此错误的 EGL 函数调用: org/eclipse/edt/rui/mvc/MVCLib.egl() at line 22 org/eclipse/edt/rui/mvc/Controller.egl() at line 86 Reproducible: Always
Created attachment 206503 [details] The sample project.
Reassigning, this isn't caused by MVC. Here's a simple testcase. Problem is assigning a null timestamp to the dojo widget. DojoDateTextBox does not throw an error if a null date is assigned to it. handler test type RUIhandler{initialUI =[ui], onConstructionFunction = start} ts timestamp?; ui DojoTimeTextBox{ value = ts, timePattern = DojoLib.TIMEBOX_FORMAT_12HR, clickableIncrement = dojo.widgets.DojoLib.TIMEBOX_ONE_QUARTER, visibleIncrement = DojoLib.TIMEBOX_ONE_HOUR, visibleRange = DojoLib.TIMEBOX_THREE_HOURS }; function start() end end
After importing a newer version of the widgets, the error is now different than what I was seeing. In EDT a null value assigned to a non-nullable field is supposed to throw a NullValueException (jsgen doesn't do this yet, but there's a bug open for that). I've updated MVCTemplate.java to check for null, and return blank for null values. This is what happened under the covers in RBD, so it keeps that behavior consistent without changing any API. You'll still find that the date? and timestamp? fields fail when used with DojoDateTextBox and DojoTimeTextBox, when their value is null. This also happens in RBD. It tries to convert the empty string to a date or timestamp, which is invalid. I spoke with Brian and we agreed to leave that part alone for 0.7. You are free to open an enhancement request for 1.0, so that null date/timestamp models work with these particular widgets.
Verified in 0.7.0.v201111091612.