FacesContext ctx = FacesContext.getCurrentInstance(); FacesEvent target = idxEvent.getTarget(); UIComponent source = target.getComponent(); UIComponent compositeParent = null; try {
UIComponent targetComponent = target.getComponent(); UIComponent compositeParent = UIComponent .getCompositeComponentParent(targetComponent);
public RedirectMessageEvent(FacesEvent wrapped, String message) { super(wrapped.getComponent()); this.wrapped = wrapped; this.message = message; }
private UIViewRoot getViewRootOf(final FacesEvent e) { UIComponent c = e.getComponent(); do { if (c instanceof UIViewRoot) { return (UIViewRoot) c; } c = c.getParent(); } while (c != null); return null; }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
private UIViewRoot getViewRootOf(final FacesEvent e) { UIComponent c = e.getComponent(); do { if (c instanceof UIViewRoot) { return (UIViewRoot) c; } c = c.getParent(); } while (c != null); return null; }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
private UIViewRoot getViewRootOf(final FacesEvent e) { UIComponent c = e.getComponent(); do { if (c instanceof UIViewRoot) { return (UIViewRoot) c; } c = c.getParent(); } while (c != null); return null; }
/** * <p>Convenience method to queue this event for broadcast at the end * of the current request processing lifecycle phase.</p> * * @throws IllegalStateException if the source component for this * event is not a descendant of a {@link UIViewRoot} */ public void queue() { getComponent().queueEvent(this); }
@Override public void queueEvent(FacesEvent event) { if ((event instanceof ItemChangeEvent) && (event.getComponent() == this)) { setEventPhase(event); } super.queueEvent(event); }
public void queueEvent(FacesEvent event) { if ((event instanceof ItemChangeEvent) && (event.getComponent() == this)) { setEventPhase((ItemChangeEvent) event); } super.queueEvent(event); }
@Override public void queueEvent(FacesEvent event) { if ((event instanceof ItemChangeEvent) && (event.getComponent() == this)) { setEventPhase((ItemChangeEvent) event); } super.queueEvent(event); }
@Override public void queueEvent(FacesEvent event) { if ((event instanceof ItemChangeEvent) && (event.getComponent() == this)) { setEventPhase(event); } super.queueEvent(event); }
public void queueEvent(FacesEvent e) { // ICE-1956 UICommand subclasses shouldn't call super.queueEvent // on ActionEvents or else the immediate flag is ignored if( (e instanceof ActionEvent) && !this.equals(e.getComponent()) && getParent() != null) { getParent().queueEvent(e); } else { super.queueEvent(e); } }
@Override public void queueEvent(FacesEvent event) { if (this.equals(event.getComponent())) { if (event instanceof TreeToggleEvent) { PhaseId targetPhase = (isImmediate() || findTreeComponent().isImmediate()) ? PhaseId.APPLY_REQUEST_VALUES : PhaseId.PROCESS_VALIDATIONS; event.setPhaseId(targetPhase); } } super.queueEvent(event); }
public void queueEvent(FacesEvent event) { if (event.getComponent() instanceof Microphone) { if (isImmediate()) { event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES); } else { event.setPhaseId(PhaseId.INVOKE_APPLICATION); } } super.queueEvent(event); }
public void broadcast() { int oldRowIndex = getRowIndex(); setRowIndex(eventRowIndex); event.getComponent().broadcast(event); setRowIndex(oldRowIndex); } }