Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Remove Children of TreeTable

Celvin Kattookaran
7 years ago Nov 17, 2015 6:30am
Alejandro Duarte
7 years ago Nov 17, 2015 1:57pm


I think it has to be with the collection size. Anyway, if you are using Java 8, you can do:


If not, you have to do something like:

Object[] toRemove = childrenIDs.toArray();
int size = toRemove.length;

for (int i = 0; i < size; i++) {

Hope that helps!

Celvin Kattookaran
7 years ago Nov 17, 2015 2:33pm

@Alejandro Thanks a lot, that did the trick.