2425262728293031323334
if(s.trim().equals("")){ return null; } else{ DAOCourse t = DAOCourse.getInstance(); AutoComplete autoComplete = (AutoComplete) uiComponent; return t.get(new ObjectId((String)autoComplete.getSubmittedValue())); } }
2223242526272829303132
if(s.trim().equals("")){ return null; } else{ DAOStudent t = DAOStudent.getInstance(); AutoComplete autoComplete = (AutoComplete) uiComponent; Student student = t.get(new ObjectId((String)autoComplete.getSubmittedValue())); return student; } }
2021222324252627282930
if(value.trim().equals("")){ return null; } else{ DAOTutor t = DAOTutor.getInstance(); AutoComplete autoComplete = (AutoComplete)component; Tutor tutor = t.get(new ObjectId((String)autoComplete.getSubmittedValue())); return tutor; } }