Package org.openfaces.component.ajax

Examples of org.openfaces.component.ajax.DefaultSessionExpiration


        return result;
    }

    private AjaxSettings createDefaultSessionExpirationSettings(FacesContext context) {
        AjaxSettings result = new AjaxSettings();
        DefaultSessionExpiration dse = new DefaultSessionExpiration();
        result.setSessionExpiration(dse);
        return result;
    }
View Full Code Here


    }

    @Override
    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        if (isAjaxSessionExpirationProcessing(context)) {
            DefaultSessionExpiration defaultSessionExpiration = (DefaultSessionExpiration) component;

            Confirmation confirmation = defaultSessionExpiration.getConfirmation();
            if (confirmation == null) {
                confirmation = new Confirmation();
                defaultSessionExpiration.setConfirmation(confirmation);
                confirmation.setId("openfaces_internal_sessionexpiration_confirmation");
                confirmation.setStandalone(true);
                confirmation.setCaption("Session Expired");
                confirmation.setDraggable(false);
                confirmation.setMessage("Your session has expired");
View Full Code Here

TOP

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

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.