Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 25 → Rev 24

/kickup/trunk/src/ak/kickup/core/action/ParticipantAction.java
95,11 → 95,10
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");
}
 
117,6 → 116,7
showForm.set("comment", participant.getComment());
 
request.setAttribute("participant", participant);
request.setAttribute("event", event);
return mapping.findForward("default");
}
else if("unregister".equals(mapping.getParameter())) {
126,8 → 126,6
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");
139,6 → 137,7
}
 
ParticipantManager.getInstance().delete(participant);
request.setAttribute("event", event);
return mapping.findForward("default");
}
else if("submit".equals(mapping.getParameter())) {
148,7 → 147,6
Participant participant = ParticipantManager.getInstance().create();
 
if(!event.isRegistrationAvailable()) {
request.setAttribute("event", event);
throw new UserException(
"ak.kickup.core.participant.edit.registration.unavailable");
}
187,7 → 185,6
 
if(participant == null) {
Thread.sleep(1000);
request.setAttribute("event", event);
throw new ModelSecurityException();
}