public String[] validateUIRules(PatientMeetingVo voPatientMeeting) { ArrayList errors = new ArrayList(); if (form.ctnDetails().customControlAuthoringHcp().getValue() != null) { if (form.ctnDetails().customControlAuthoringHcp().getValue().getAuthoringHcp() == null) { errors.add("An Authoring Hcp must be supplied"); } } if (voPatientMeeting.getAttendeesIsNotNull()) { PatientMeetingInviteeVoCollection collPatientMeetingInviteeVo = voPatientMeeting.getAttendees(); for (int i = 0; i < collPatientMeetingInviteeVo.size(); i++) { if (collPatientMeetingInviteeVo.get(i).getFamilyMember() == null && collPatientMeetingInviteeVo.get(i).getHcp() == null) errors.add("Please select an Invitee."); } } //-------------------------------------------------- if(voPatientMeeting.getMeetingDateTime() == null) { errors.add("Meeting Date/Time is mandatory."); } //--------------------------------------------------- String[] arrErrors = null; if (errors.size() > 0) { arrErrors = new String[errors.size()]; for (int i = 0; i < errors.size(); i++) arrErrors[i] = (String) errors.get(i); } return arrErrors; }