95,10 → 95,11 |
DynaActionForm showForm = (DynaActionForm)RequestUtilsX.populateActionForm( |
this, request, "ParticipantRegisterEditForm"); |
|
request.setAttribute("event", event); |
|
Participant participant = ParticipantManager.getInstance().findForIdent(ident); |
if(participant == null) { |
Thread.sleep(1000); |
request.setAttribute("event", event); |
throw new UserException("ak.kickup.core.participant.edit.ident.wrong"); |
} |
|
116,7 → 117,6 |
showForm.set("comment", participant.getComment()); |
|
request.setAttribute("participant", participant); |
request.setAttribute("event", event); |
return mapping.findForward("default"); |
} |
else if("unregister".equals(mapping.getParameter())) { |
126,6 → 126,8 |
String ident = (String)theForm.get("ident"); |
Participant participant = ParticipantManager.getInstance().findForIdent(ident); |
|
request.setAttribute("event", event); |
|
if(participant == null) { |
Thread.sleep(1000); |
throw new UserException("ak.kickup.core.participant.edit.ident.wrong"); |
137,7 → 139,6 |
} |
|
ParticipantManager.getInstance().delete(participant); |
request.setAttribute("event", event); |
return mapping.findForward("default"); |
} |
else if("submit".equals(mapping.getParameter())) { |
147,6 → 148,7 |
Participant participant = ParticipantManager.getInstance().create(); |
|
if(!event.isRegistrationAvailable()) { |
request.setAttribute("event", event); |
throw new UserException( |
"ak.kickup.core.participant.edit.registration.unavailable"); |
} |
185,6 → 187,7 |
|
if(participant == null) { |
Thread.sleep(1000); |
request.setAttribute("event", event); |
throw new ModelSecurityException(); |
} |
|