Forum /
Ext GWT Community Forums (1.x) /
Ext GWT: Bugs (1.x) /
[FIXED] Beta5: Bug in ModelData#getNestedValue()
[FIXED] Beta5: Bug in ModelData#getNestedValue()
Hi,
It looks like you are using a none existant function List#subList() inside the getNestedValue()-method. To make it work I had to overload it myself with a code like this:
protected <X> X getNestedValue(ModelData model, List<String> paths) {
if (paths.size() == 1) {
return (X) model.get(paths.get(0));
} else {
Object obj = model.get(paths.get(0));
if (obj != null && obj instanceof ModelData) {
ArrayList<String> tmp = new ArrayList<String>(paths);
tmp.remove(0);
return (X) getNestedValue((ModelData) obj, tmp);
}
}
return null;
}
Sencha - GXT Dev Team
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us