Exemple #1
0
 boolean onSuccessFromCreateForm() {
   // We want to tell our containing page explicitly what course we've
   // created, so we trigger new event
   // "successfulCreate" with a parameter. It will bubble up because we
   // don't have a handler method for it.
   componentResources.triggerEvent(SUCCESSFUL_CREATE, new Object[] {course.getUuid()}, null);
   // We don't want "success" to bubble up, so we return true to say we've
   // handled it.
   mode = Mode.REVIEW;
   courseUuid = course.getUuid();
   return true;
 }