Example #1
0
 @Override
 public void broadcast(FacesEvent event) throws AbortProcessingException {
   if (event instanceof ItemChangeEvent) {
     setValue(((ItemChangeEvent) event).getNewItemName());
     setSubmittedActiveItem(null);
     if (event.getPhaseId() != PhaseId.UPDATE_MODEL_VALUES) {
       FacesContext.getCurrentInstance().renderResponse();
     }
   }
   super.broadcast(event);
 }
 @Override
 public void broadcast(FacesEvent event) throws AbortProcessingException {
   FacesContext facesContext = FacesContext.getCurrentInstance();
   if (event instanceof ItemChangeEvent) {
     setValue(((ItemChangeEvent) event).getNewItemName());
     setSubmittedActiveItem(null);
     if (event.getPhaseId() == PhaseId.UPDATE_MODEL_VALUES) {
       try {
         updateModel(facesContext);
       } catch (RuntimeException e) {
         facesContext.renderResponse();
         throw e;
       }
     } else {
       facesContext.renderResponse();
     }
   }
   super.broadcast(event);
 }
Example #3
0
 public PhaseId getPhaseId() {
   return originalEvent.getPhaseId();
 }
Example #4
0
 @Override
 public PhaseId getPhaseId() {
   return event.getPhaseId();
 }