Infinite loop in DateItem in 7.0RC

When a DateItem is displayed disabled and the user clicks on it a “too much recursion” error occurs. (in FF or “Stack overflow” in IE)
The following simple example displays the issue:

isc.DynamicForm.create({
    fields: [
        { name: "birthday", type: "date", disabled: true}
    ]
});

Now click on one of the dropdown arrows. And wait until the browser yields:

too much recursion
getRowSpan()()ISC_Form…=7.0RC.js (line 658)
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
getDayOptions()()ISC_Form…=7.0RC.js (line 1874)
…
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
getDayOptions()()ISC_Form…=7.0RC.js (line 1874)
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
getDayOptions()()ISC_Form…=7.0RC.js (line 1874)
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
getDayOptions()()ISC_Form…=7.0RC.js (line 1874)
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
getDayOptions()()ISC_Form…=7.0RC.js (line 1874)
focusInItem()()ISC_Form…=7.0RC.js (line 1188)
handleClick()()ISC_Form…=7.0RC.js (line 1592)
bubbleItemHandler()([SelectItem ID:isc_SelectItem_15 name:monthSelector] ns=Object name=monthSelector prompt=Choose a month, “handleClick”, [SelectItem ID:isc_SelectItem_15 name:monthSelector] ns=Object name=monthSelector prompt=Choose a month, undefined, undefined, undefined)ISC_Form…=7.0RC.js (line 566)
handleClick()(Object DOMevent=Event mouseup x=481 y=198, undefined)ISC_Form…=7.0RC.js (line 570)
bubbleEvent()([DynamicForm ID:isc_DynamicForm_13] ns=Object fields=[1] ID=isc_DynamicForm_13 $541=true, “click”, undefined, false)ISC_Core…=7.0RC.js (line 1340)
handleClick()([DynamicForm ID:isc_DynamicForm_13] ns=Object fields=[1] ID=isc_DynamicForm_13 $541=true, “click”)ISC_Core…=7.0RC.js (line 1212)
k5()(mouseup clientX=366, clientY=199, undefined)ISC_Core…=7.0RC.js (line 1199)
handleMouseUp()(mouseup clientX=366, clientY=199, undefined)ISC_Core…=7.0RC.js (line 1190)
dispatch()(function(), mouseup clientX=366, clientY=199)ISC_Core…=7.0RC.js (line 1393)
registerCallback()(mouseup clientX=366, clientY=199)

Any comments?

Hi,

will this be fixed in 7.0 or is there a some workaround meanwhile?

It’s scheduled to be looked at. Be patient (or become a support customer :slight_smile:

This has been fixed internally and should be available with the next build.

Hi,

I have the same problem in SmartClient Version: 7.1 (built 2009-11-10).
The same error happens when the first field in my listGrid is of type Date.

Not sure where you got a build like that (we do not show you as a customer) but this was already confirmed fixed, you may need to clear your cache, or you may have mixed versions in some other way due to stale files.

This build from SmartGWT night build…(http://www.smartclient.com/smartgwt/builds/revision.828/)

Then, maybe that it something wrong in SmartGWT?

Then please show a SmartGWT test case.

Ok, I’ll try to create it.

Hi!

Really I can’t repeat this issue in stand alone test case, but I found that it connected with summary functionality.

When I first create all fields for datasource and grid and then call “grid.setShowGridSummary(true)” it’s shows “too much recursion” error. But when I first “grid.setShowGridSummary(true)” and then create all fileds, error dissapears.

So now my problem is solved, but it’s diffenetly something wrong with it…

P.S. Error looks like:

Error:
	'Недостаточно места в стеке'
	in http://localhost/RSDHACenter/
	at line 737
    Class.invokeSuper(_1=>null, _2=>"focusInItem", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
    Class.Super(_1=>"focusInItem", _2=>Obj{length:0}, _3=>undef)
    [o]TextItem.focusInItem()
    FormItem.focusInItem()
    DateItem.focusInItem()
    ** recursed on Class.invokeSuper

‘Недостаточно места в стеке’ = ‘No free space in stack’.
Maybe this will be helpfull.

Best regards, Andrey.