public String load(String eventId) { this.event = eventBean.findEvent(eventId); this.attendees = attendeeBean.findAttendees(this.event); List<Attendee> confirmedAttendees = attendeeBean.findConfirmedAttendees(event); if (confirmedAttendees != null) { this.selectedAttendees = new Attendee[confirmedAttendees.size()]; int i = 0; for (Attendee atd : confirmedAttendees) { this.selectedAttendees[i++] = atd; } } this.numberPeopleAttending = attendeeBean.findNumberPeopleAttending(this.event); this.numberPeopleAttended = attendeeBean.findNumberPeopleAttended(this.event); return "attendees?faces-redirect=true"; }
public String confirmMembersAttended() { attendeeBean.confirmMembersAttendance(this.event, this.selectedAttendees); removeSessionScoped(); return "events?faces-redirect=true"; }