I am working on building an input form similar to the booking example in the reference project, however instead of the Date widget I am trying to use the Time widget. I believe I have my widget set-up correctly to display because when I do not specify a 'value' the widget appears normally.
If I try to specify the value either by the backing form:input tag or through the value widgetAttrs the resulting page blows up. The fire bug error is
I am using a property editor for my form object variableCode:842.getHours is not a function (function(){var _1=null;if((_1||(typeof ...tTimeout(dojo._fakeLoadInit,1000);}})(); dojo.js (line 16)
The format of the editor matches the time pattern specified by the JS widgetCode:registry.registerCustomEditor(Time.class, new CustomDateEditor(new SimpleDateFormat("HH:mm:ss"), false));
Here is the rendered HTML of the input tagCode:<form:input path="minStartTime"/> <script type="text/javascript"> Spring.addDecoration(new Spring.ElementDecoration({ elementId : "minStartTime", widgetType : "dijit.form.TimeTextBox", widgetAttrs : {constraints:{timePattern:"HH:mm:ss", clickableIncrement:"T00:15:00", visibleIncrement:"T00:15:00", visibleRange:"T02:00:00"}} })); </script>
Am I missing something in the set-up or execution? Any help is greatly appreciated.Code:<input id="minStartTime" name="minStartTime" type="text" value="14:33:11"/>
-jason


Reply With Quote
