protected void reconstructAllocatedIds(IRequestCycle cycle)
{
String[] values = cycle.getParameters(_name);
StringSplitter splitter = new StringSplitter(',');
String renderList = values[0];
if (HiveMind.isNonBlank(renderList))
{
String[] ids = splitter.splitToArray(values[0]);
for (int i = 0; i < ids.length; i++)
_allocatedIds.add(ids[i]);
}
// Now, reconstruct the the initial state of the
// id allocator.
preallocateReservedIds();
if (values.length > 1)
{
String extraReservedIds = values[1];
String[] ids = splitter.splitToArray(extraReservedIds);
for (int i = 0; i < ids.length; i++)
_elementIdAllocator.allocateId(ids[i]);
}
}