Refine search
ELContext createNewELContext(final FreeMarkerPageContext pageCtx) { ELContext ctx = new FreeMarkerELContext(pageCtx); ELContextEvent event = new ELContextEvent(ctx); synchronized (listeners) { for (Iterator iter = listeners.iterator(); iter.hasNext(); ) { ELContextListener l = (ELContextListener) iter.next(); l.contextCreated(event); } } return ctx; }
/** * Returns the <code>ELContext</code> that was created. * This is a type-safe equivalent of the {@link #getSource} method. * * @return the ELContext that was created. */ public ELContext getELContext() { return (ELContext) getSource(); } }
/** * Invoked when a new <code>ELContext</code> has been created. * * @param ece the notification event. */ public void contextCreated(ELContextEvent ece) { FacesContext context = FacesContext.getCurrentInstance(); if ( context == null) { return; } ELContext source = (ELContext)ece.getSource(); // Register FacesContext with JSP source.putContext(FacesContext.class, context); // dispatch the event to any JSF applications interested in // the event. ELContextListener[] listeners = context.getApplication().getELContextListeners(); if ( listeners == null) { return; } for (int i = 0; i < listeners.length; ++i) { ELContextListener elcl = listeners[i]; elcl.contextCreated(new ELContextEvent(source)); } }
public void contextCreated(ELContextEvent ece) { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { ece.getELContext().putContext(FacesContext.class, facesContext); for (ELContextListener listener : facesContext.getApplication().getELContextListeners()) { listener.contextCreated(ece); } } }
public void contextCreated(ELContextEvent contextEvent) { ELCreationalContextStack.addToContext(contextEvent.getELContext()); }
return; ELContext source = (ELContext)ece.getSource(); elcl.contextCreated(new ELContextEvent(source));
public void contextCreated(ELContextEvent ece) { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { ece.getELContext().putContext(FacesContext.class, facesContext); for (ELContextListener listener : facesContext.getApplication().getELContextListeners()) { listener.contextCreated(ece); } } }
public void contextCreated(ELContextEvent contextEvent) { ELCreationalContextStack.addToContext(contextEvent.getELContext()); }
public static void callELContextListeners(ELContext context) { ELContextEvent event = new ELContextEvent(context); for (ELContextListener listener : EL_CONTEXT_LISTENERS) { listener.contextCreated(event); } }
return; ELContext source = (ELContext)ece.getSource(); elcl.contextCreated(new ELContextEvent(source));
/** * Returns the <code>ELContext</code> that was created. * This is a type-safe equivalent of the {@link #getSource} method. * * @return the ELContext that was created. */ public ELContext getELContext() { return (ELContext) getSource(); } }
public void contextCreated(ELContextEvent ece) { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { ece.getELContext().putContext(FacesContext.class, facesContext); for (ELContextListener listener : facesContext.getApplication().getELContextListeners()) { listener.contextCreated(ece); } } }
public void contextCreated(ELContextEvent contextEvent) { ELCreationalContextStack.addToContext(contextEvent.getELContext()); }
private void callELContextListeners(ELContext context) { ELContextEvent event = new ELContextEvent(context); for (ELContextListener listener : EL_CONTEXT_LISTENERS) { listener.contextCreated(event); } }
return; ELContext source = (ELContext)ece.getSource(); elcl.contextCreated(new ELContextEvent(source));
/** * Returns the <code>ELContext</code> that was created. * This is a type-safe equivalent of the {@link #getSource} method. * * @return the ELContext that was created. */ public ELContext getELContext() { return (ELContext) getSource(); } }
public void contextCreated(ELContextEvent ece) { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext != null) { ece.getELContext().putContext(FacesContext.class, facesContext); for (ELContextListener listener : facesContext.getApplication().getELContextListeners()) { listener.contextCreated(ece); } } }
public void contextCreated(ELContextEvent contextEvent) { ELCreationalContextStack.addToContext(contextEvent.getELContext()); }
private void callELContextListeners(ELContext context) { ELContextEvent event = new ELContextEvent(context); for (ELContextListener listener : EL_CONTEXT_LISTENERS) { listener.contextCreated(event); } }
return; ELContext source = (ELContext)ece.getSource(); elcl.contextCreated(new ELContextEvent(source));