Populating a TreeConnector from an array

using:

public class TreeItem
{
public Integer ItemID;
public String ItemText;
public Integer ParentID;

public TreeItem( int parent, int id, String text )
{
ParentID = parent;
ItemID = id;
ItemText = text;
}
}

and populating a TreeConnector with:

public class XmlTreeServlet extends ThreadSafeConnectorServlet
{
private static final long serialVersionUID = 1L;

@Override
public void configure( HttpServletRequest request, HttpServletResponse response )
{
ArrayList array = new ArrayList();

array.add( new TreeItem( 0, 1, "Root Level, item 1" ) );

array.add( new TreeItem( 1, 2, "Level 1, item 2" ) );
array.add( new TreeItem( 2, 3, "Level 2, item 3" ) );
array.add( new TreeItem( 2, 4, "Level 2, item 4" ) );

array.add( new TreeItem( 1, 5, "Level 1, item 5" ) );
array.add( new TreeItem( 5, 6, "Level 2, item 6" ) );
array.add( new TreeItem( 5, 7, "Level 2, item 7" ) );

array.add( new TreeItem( 1, 8, "Level 1, item 8" ) );

TreeConnector data = new TreeConnector( null );
data.servlet( request, response );
data.render_array( array, "ItemID", "ItemText", "", "ParentID" );

}
}

all items are nested, the ParentID seems to be ignored?
Or am I doing something wrong?

Hi,
unfortunately render_array doesn’t support tree-structures for now.
It will be added in the future.

has this support been added to render_array now?