private void publishException (Throwable e, PhaseId phaseId, FacesContext facesContext) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); }
private void publishException (Throwable e, PhaseId phaseId, FacesContext facesContext) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); }
public static void publishException(Throwable e, PhaseId phaseId, FacesContext facesContext) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext(facesContext, e, null, phaseId); facesContext.getApplication().publishEvent(facesContext, ExceptionQueuedEvent.class, context); } }
private void publishException (Throwable e, PhaseId phaseId, FacesContext facesContext) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); }
protected void queueException(FacesContext ctx, Throwable t, String booleanKey) { ExceptionQueuedEventContext extx = new ExceptionQueuedEventContext(ctx, t); if (booleanKey != null) { extx.getAttributes().put(booleanKey, Boolean.TRUE); } ctx.getApplication().publishEvent(ctx, ExceptionQueuedEvent.class, extx); }
private void publishException (FacesContext facesContext, Throwable e, PhaseId phaseId, String key) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); context.getAttributes().put (key, Boolean.TRUE); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); }
protected void queueException(FacesContext ctx, Throwable t, String booleanKey) { ExceptionQueuedEventContext extx = new ExceptionQueuedEventContext(ctx, t); if (booleanKey != null) { extx.getAttributes().put(booleanKey, Boolean.TRUE); } ctx.getApplication().publishEvent(ctx, ExceptionQueuedEvent.class, extx); }
private void publishException (Throwable e, PhaseId phaseId, String key) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); context.getAttributes().put (key, Boolean.TRUE); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); } }
protected void queueException(FacesContext ctx, Throwable t, String booleanKey) { ExceptionQueuedEventContext extx = new ExceptionQueuedEventContext(ctx, t); if (booleanKey != null) { extx.getAttributes().put(booleanKey, Boolean.TRUE); } ctx.getApplication().publishEvent(ctx, ExceptionQueuedEvent.class, extx); }
private void publishException (Throwable e, PhaseId phaseId, String key) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); context.getAttributes().put (key, Boolean.TRUE); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); } }
private void publishException (Throwable e, PhaseId phaseId, String key) { ExceptionQueuedEventContext context = new ExceptionQueuedEventContext (facesContext, e, null, phaseId); context.getAttributes().put (key, Boolean.TRUE); facesContext.getApplication().publishEvent (facesContext, ExceptionQueuedEvent.class, context); } }
protected void queueException(FacesContext ctx, Throwable t, String booleanKey) { ExceptionQueuedEventContext extx = new ExceptionQueuedEventContext(ctx, t); if (booleanKey != null) { extx.getAttributes().put(booleanKey, Boolean.TRUE); } ctx.getApplication().publishEvent(ctx, ExceptionQueuedEvent.class, extx); }
private void publishPostRestoreStateEvent(FacesContext facesContext) { VisitHint visitHint = null; try { visitHint = Enum.valueOf(VisitHint.class, "SKIP_ITERATION"); } catch (IllegalArgumentException ex) { // JSF < 2.1 } String name = "javax.faces.visit.SKIP_ITERATION"; facesContext.getAttributes().put(name, true); try { VisitContext visitContext = (visitHint != null ? VisitContext.createVisitContext(facesContext, null, EnumSet.of(visitHint)) : VisitContext.createVisitContext(facesContext)); facesContext.getViewRoot().visitTree(visitContext, new PostRestoreStateEventVisitCallback()); } catch (AbortProcessingException e) { PhaseId phaseId = facesContext.getCurrentPhaseId(); Object eventContext = new ExceptionQueuedEventContext(facesContext, e, null, phaseId); facesContext.getApplication().publishEvent(facesContext, ExceptionQueuedEvent.class, eventContext); } finally { facesContext.getAttributes().remove(name); } }
private void publishPostRestoreStateEvent(FacesContext facesContext) { VisitHint visitHint = null; try { visitHint = Enum.valueOf(VisitHint.class, "SKIP_ITERATION"); } catch (IllegalArgumentException ex) { // JSF < 2.1 } String name = "javax.faces.visit.SKIP_ITERATION"; facesContext.getAttributes().put(name, true); try { VisitContext visitContext = (visitHint != null ? VisitContext.createVisitContext(facesContext, null, EnumSet.of(visitHint)) : VisitContext.createVisitContext(facesContext)); facesContext.getViewRoot().visitTree(visitContext, new PostRestoreStateEventVisitCallback()); } catch (AbortProcessingException e) { PhaseId phaseId = facesContext.getCurrentPhaseId(); Object eventContext = new ExceptionQueuedEventContext(facesContext, e, null, phaseId); facesContext.getApplication().publishEvent(facesContext, ExceptionQueuedEvent.class, eventContext); } finally { facesContext.getAttributes().remove(name); } }
facesContext.getApplication().publishEvent(facesContext, ExceptionQueuedEvent.class, new ExceptionQueuedEventContext(facesContext, e, null,
facesContext.getApplication().publishEvent(facesContext, ExceptionQueuedEvent.class, new ExceptionQueuedEventContext(facesContext, e, null,
context.getApplication().publishEvent(context, ExceptionQueuedEvent.class, new ExceptionQueuedEventContext(context, ape));
context.getApplication().publishEvent(context, ExceptionQueuedEvent.class, new ExceptionQueuedEventContext(context, ape));
= new ExceptionQueuedEventContext(context, duplicateIdException, component, context.getCurrentPhaseId());
ExceptionQueuedEventContext eventContext = new ExceptionQueuedEventContext(context, t); context.getApplication().publishEvent(context, ExceptionQueuedEvent.class, eventContext); context.getExceptionHandler().handle();