Success! Looks like we've fixed this one. According to our records the fix was applied for
a bug in our system
a recent build.
Tree throws exception when a single quote is in model key
Tracing my code in dev mode I got
Since the model key returned by ModelKeyProvider goes to element attribute as is
java.lang.IllegalArgumentException: String is not complete HTML (ends in non-inner-HTML context): <div id='x-widget-68_[hnsf'U]' class='GJA1Q0MMGB'>
it should be a valid HTML attribute string which is not obivious.
sb.appendHtmlConstant("<div id='" + id + "' class='" + style.node() + "'>");
Escaping ' as " also doesn't help: it unescapes implicitly making the node unselectable because com.sencha.gxt.widget.core.client.tree.Tree#findNode returns null:
id is "[hnsf'U]" while nodes contains "[hnsf"U]" key.
String id = item.getId();
TreeNode<M> node = nodes.get(id);
Thanks, and yes, its a fairly obvious mistake that we will deal with. We will update this thread when a fix is available.
As a workaround, consider a custom ModelKeyProvider that encodes the string key before returning it.
This is fixed in SVN (rev 1963). Changes will go out in next release later this week.