Пример #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);
 }
Пример #2
0
 @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);
 }
Пример #3
0
 public PhaseId getPhaseId() {
   return originalEvent.getPhaseId();
 }
Пример #4
0
 @Override
 public PhaseId getPhaseId() {
   return event.getPhaseId();
 }