Package org.openfaces.component.ajax

Examples of org.openfaces.component.ajax.SilentSessionExpiration


    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        if (!isAjaxSessionExpirationProcessing(context))
            return;

        SilentSessionExpiration sse = (SilentSessionExpiration) component;
        String location = sse.getRedirectLocation();
        if (location == null)
            location = getRedirectLocationOnSessionExpired(context);

        String onsessionexpiredHandlerFunction = "O$.reloadPage(\'" + location + "\');";
        UIComponent ajaxSettings = component.getParent();
View Full Code Here


        return (ajaxSettings.getParent() instanceof UIViewRoot || ajaxSettings.getParent() instanceof UIForm);
    }

    private AjaxSettings createSilentSessionExpirationSettings() {
        AjaxSettings result = new AjaxSettings();
        result.setSessionExpiration(new SilentSessionExpiration());
        return result;
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.ajax.SilentSessionExpiration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.