java - GWT-CellTable/Datagrid- BOUND_TO_SELECTION causing error -


i have created gwt datagrid (which acts celltable) , getting strange error.

java.lang.illegalstateexception: possible infinite loop has been detected in cell widget. happens when selectionmodel triggers selectionchangeevent  when selectionmodel.isselected() called, causes table redraw continuously. 

i have found little information of error while searching net, , not impact front end @ all, in fact, works perfectly. yet still errors in eclipse when specific scenarios occur.

how reproduce error:

-selecting specific filters (cannot identify why not consistently error every column filter)

-selecting cell contains data hidden (...) , keying left or right keyboard arrow. css works when user hovers on cell, row height expands , text shown.)

what causes/ fixes error:

the error seems come line of code:

mydatatable.setkeyboardselectionpolicy(keyboardselectionpolicy.bound_to_selction); 

when comment line out errors no longer occur. problem functionality not desired keyboard selection separate mouse selection , whole "3 active state" issue exists.

about code:

i using:

-singleselectionmodel

-doubleclick dom handler

-selectionchangeevent.handler (error still shows if commented out)

updated further information:

when follow through in debugger keeps calling onselectionchange 5 times , errors out. then, said, if remove selectionchange handler not hit breakpoints in file, again go gwt file hasdatapresenter.class , continue run until errors there(loop style).

furthermore if first select cell not have ellipsis (...) , arrow on 1 have it, not receive error. when select cell (...) , arrow out, error.

since offering no code, have guess.

the way setting/hiding ellipsis triggers table redrawn. this, in turn, triggers selection event (selecting same cell). once cell selected, triggers table redraw, etc.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -