With all SmartGWT 3.1 version we tested (last from 2013-01-29) we notice a behavior with HTMLFlow#setContents() that seems to be different than with 3.0.
The below code causes infinite recursion because HTMLFlow#setContents() triggers ContentLoadedHandler#onContentLoaded() to be invoked again:
Is this intentional or a regression bug? We worked around the issue by introducing our own "break-infinite-recursion flag" that is evaluated before calling HTMLFlow#setContents().
The below code causes infinite recursion because HTMLFlow#setContents() triggers ContentLoadedHandler#onContentLoaded() to be invoked again:
Code:
// htmlFlow uses ContentsType.FRAGMENT htmlFlow.addContentLoadedHandler(this); public void onContentLoaded(ContentLoadedEvent event) { //...some content processing htmlFlow.setContents(contents); }
Comment