Package org.openfaces.component.ajax

Examples of org.openfaces.component.ajax.AjaxSettings


            response.setHeader(AjaxViewHandler.AJAX_EXPIRED_HEADER, AjaxViewHandler.AJAX_VIEW_EXPIRED);
        }

        UIViewRoot viewRoot = context.getViewRoot();
        List<UIComponent> children = viewRoot.getChildren();
        AjaxSettings ajaxSettings = null;

        String[] componentIds = extractRender(request);
        Map<String, Object> requestMap = externalContext.getRequestMap();

        assertChildren(viewRoot);
View Full Code Here


            syncObject.notifyAll();
        }
    }

    private AjaxSettings findAjaxSettings(List<UIComponent> children) {
        AjaxSettings result = null;
        for (Object iteratedChild : children) {
            if (iteratedChild instanceof AjaxSettings) {
                result = (AjaxSettings) iteratedChild;
                return result;
            }
View Full Code Here

        }
        return result;
    }

    private AjaxSettings findPageAjaxSettings(List<UIComponent> children) {
        AjaxSettings result = null;
        for (Object iteratedChild : children) {
            if (iteratedChild instanceof AjaxSettings && isPageSettings((AjaxSettings) iteratedChild)) {
                result = (AjaxSettings) iteratedChild;
                return result;
            }
View Full Code Here

    private boolean isPageSettings(AjaxSettings ajaxSettings) {
        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

        result.setSessionExpiration(new SilentSessionExpiration());
        return result;
    }

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

*/
public class AjaxSettingsRenderer extends AbstractSettingsRenderer implements AjaxPortionRenderer {

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        AjaxSettings ajaxSettings = (AjaxSettings) component;
        if (!AjaxUtil.isAjaxRequest(context)) {
            processOnsessionexpired(context, ajaxSettings);
            Resources.renderJSLinkIfNeeded(context, Resources.utilJsURL(context));
            Resources.renderJSLinkIfNeeded(context, Resources.internalURL(context, ConfirmationRenderer.JS_SCRIPT_URL));
        }
View Full Code Here

        return null;
    }

    @Override
    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        AjaxSettings ajaxSettings = (AjaxSettings) component;
        if (isAjaxSessionExpirationProcessing(context)) {

            SessionExpiration expirationFacet = ajaxSettings.getSessionExpiration();
            expirationFacet.encodeAll(context);
        }

        if (isAjaxErrorProcessing(context)) {
View Full Code Here

TOP

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

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.