if (_rewinding)
{
if (_allocatedIdIndex >= _allocatedIds.size())
{
throw new StaleLinkException(
Tapestry.format(
"Form.too-many-ids",
getExtendedId(),
Integer.toString(_allocatedIds.size()),
component.getExtendedId()),
this);
}
String expected = (String) _allocatedIds.get(_allocatedIdIndex);
if (!result.equals(expected))
throw new StaleLinkException(
Tapestry.format(
"Form.id-mismatch",
new Object[] {
getExtendedId(),
Integer.toString(_allocatedIdIndex + 1),