示例#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();
 }