I'm using wicket to display a list of tables. The number of tables, and the number of rows in each table, are both dynamic.

I'm trying to keep it simple and use a RepeatingView for each, and nest them, but wicket says:

> 
> java.lang.IllegalArgumentException: A child with id 'table' already exists
> 
> 
> 

Here is my Java:

```
   RepeatingView view = new RepeatingView("listoftables");

    for (CCSubscription sub: getCustomer().getSubscriptions())  {

        //resource balance table
        ResourceBalance[] resBals = sub.getResourceBalances();
        if(resBals!=null && resBals.length>0)   {
        ListView<ResourceBalance> resBalTable = new ListView<ResourceBalance>("table", Arrays.asList(resBals)) {

            @Override
            protected void populateItem(ListItem<ResourceBalance> item) {
                ResourceBalance bal = item.getModelObject();
                item.add(new Label("resource", bal.getResource().getName()));
                item.add(new Label("balance", bal.getBalance()));
            }
        };
        view.add(resBalTable);
        }   //end if sub has non-null resource balance

    }   //end loop through subscriptions

    add(view);

```

And my html is :

```
<ul>
<li wicket:id="listoftables">
<fieldset>
<legend><b>Resource Balances</b>
</legend>
    <table class="dataview" style="width:50%">
        <thead>
            <tr class="headers">
                <th>Resource</th>
                <th>Balance</th>

            </tr>
        </thead>
        <tr wicket:id="table">
            <td>
                <span wicket:id="resource"></span>
            </td>
            <td>
                <span wicket:id="balance"></span>
            </td>
        </tr>
    </table>
</fieldset>
<br/>

```

I concede that I'm probably going about this the wrong way, but I can't see what the right way should be.

Hope someone can help!?