return getExternalContext().getFlash();
return getExternalContext().getFlash();
@Override public Flash getFlash() { return wrapped.getFlash(); }
@Override public Flash getFlash() { return delegate.getFlash(); }
/** * @see Faces#getFlash() */ public static Flash getFlash(FacesContext context) { return context.getExternalContext().getFlash(); }
/** * @since 2.0 */ public Flash getFlash() { ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get(); if (ctx == null) { throw new UnsupportedOperationException(); } return ctx.getFlash(); }
@Override public Object lookup(ArquillianResource resource, Annotation... qualifiers) { return FacesContext.getCurrentInstance().getExternalContext().getFlash(); } }
@Bean("flash") @Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS) @ConditionalOnMissingBean public Flash flash() { return FacesContext.getCurrentInstance().getExternalContext().getFlash(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p> * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
@Override public Flash getFlash() { return getWrapped().getFlash(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p? * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p? * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
@Produces @Named("flash") @FacesScoped public Flash getFlash() { return FacesContext.getCurrentInstance().getExternalContext().getFlash(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p> * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
@Override public Flash getFlash() { if (isEnableTransitionTimeNoOpFlash) { return new NoOpFlash(); } else { return super.getFlash(); } }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p> * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
/** * <p>The default behavior of this method is to * call {@link ExternalContext#getFlash()} on the wrapped {@link ExternalContext} * object.</p> * * @see javax.faces.context.ExternalContext#getFlash() */ @Override public Flash getFlash() { return getWrapped().getFlash(); }
public FlashProducer() { super.name("flash") .beanClass(Flash.class) .types( Flash.class, new ParameterizedTypeImpl(Map.class, new Type[]{Dummy.class, Dummy.class}), Object.class) .scope(RequestScoped.class) .create(e -> FacesContext.getCurrentInstance().getExternalContext().getFlash()); }
public FlashProducer() { super.name("flash") .beanClass(Flash.class) .types( Flash.class, new ParameterizedTypeImpl(Map.class, new Type[]{Dummy.class, Dummy.class}), Object.class) .scope(RequestScoped.class) .create(e -> FacesContext.getCurrentInstance().getExternalContext().getFlash()); }
/** * @see Faces#redirectPermanent(String, String...) */ public static void redirectPermanent(FacesContext context, String url, String... paramValues) { ExternalContext externalContext = context.getExternalContext(); externalContext.getFlash().setRedirect(true); // MyFaces also requires this for a redirect in current request (which is incorrect). externalContext.setResponseStatus(SC_MOVED_PERMANENTLY); externalContext.setResponseHeader("Location", prepareRedirectURL(getRequest(context), url, paramValues)); externalContext.setResponseHeader("Connection", "close"); context.responseComplete(); }