public void updateUsers(IRequestCycle cycle)
{
if (isInError())
return;
Visit visit = (Visit) getVisit();
VirtualLibraryEngine vengine = (VirtualLibraryEngine) cycle.getEngine();
UserListEditMap map = getListEditMap();
List updatedUsers = map.getValues();
Person[] updates = (Person[]) updatedUsers.toArray(new Person[updatedUsers.size()]);
Integer[] resetPasswordUserIds = toArray(map.getResetPasswordKeys());
Integer[] deletedUserIds = toArray(map.getDeletedKeys());
String password = getPassword();
setPassword(null);
if (Tapestry.isBlank(password) && Tapestry.size(resetPasswordUserIds) != 0)
{
setErrorField("inputPassword", getMessage("need-password"));
return;
}
Integer adminId = visit.getUserId();
int i = 0;
while (true)
{
try