@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); }
public PhaseId getPhaseId() { return originalEvent.getPhaseId(); }
@Override public PhaseId getPhaseId() { return event.getPhaseId(); }