Examples of MyfacesConfig


Examples of org.apache.myfaces.config.MyfacesConfig

    }


    public static boolean isJavascriptAllowed(ExternalContext externalContext)
    {
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(externalContext);
        if (myfacesConfig.isAllowJavascript())
        {
            if (myfacesConfig.isDetectJavascript())
            {
                return isJavascriptDetected(externalContext);
            }
            else
            {
View Full Code Here

Examples of org.apache.myfaces.config.MyfacesConfig

        {
            DummyFormUtils.writeDummyForm(this, _dummyFormParams);
        }

        FacesContext facesContext = FacesContext.getCurrentInstance();
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());
        if (myfacesConfig.isDetectJavascript())
        {
            if (! JavascriptUtils.isJavascriptDetected(facesContext.getExternalContext()))
            {

                startElement(HTML.SCRIPT_ELEM,null);
                writeAttribute(HTML.SCRIPT_TYPE_ATTR,HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT,null);
                StringBuffer script = new StringBuffer();
                script.append("document.location.replace('").
                        append(facesContext.getApplication().getViewHandler().getResourceURL(facesContext, "/_javascriptDetector_")).append("?goto=").append(facesContext.getApplication().getViewHandler().getActionURL(facesContext, facesContext.getViewRoot().getViewId())).append("');");
                writeText(script.toString(),null);
                endElement(HTML.SCRIPT_ELEM);
            }
        }

        if (myfacesConfig.isAutoScroll())
        {
            JavascriptUtils.renderAutoScrollFunction(facesContext, this);
        }

        _writer.flush();
View Full Code Here

Examples of org.apache.myfaces.config.MyfacesConfig

    }


    public static boolean isJavascriptAllowed(ExternalContext externalContext)
    {
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(externalContext);
        if (myfacesConfig.isAllowJavascript())
        {
            if (myfacesConfig.isDetectJavascript())
            {
                return isJavascriptDetected(externalContext);
            }
            else
            {
View Full Code Here

Examples of org.apache.myfaces.config.MyfacesConfig

        {
            DummyFormUtils.writeDummyForm(this, _dummyFormParams);
        }

        FacesContext facesContext = FacesContext.getCurrentInstance();
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());
        if (myfacesConfig.isDetectJavascript())
        {
            if (! JavascriptUtils.isJavascriptDetected(facesContext.getExternalContext()))
            {
                write("<script type=\"text/javascript\">\n<!--\ndocument.location.replace('" + facesContext.getApplication().getViewHandler().getResourceURL(facesContext, "/_javascriptDetector_"+ "?goto=" + facesContext.getApplication().getViewHandler().getActionURL(facesContext, facesContext.getViewRoot().getViewId()) +"');\n//-->\n</script>");
            }
        }

        if (myfacesConfig.isAutoScroll())
        {
            JavascriptUtils.renderAutoScrollFunction(facesContext, this);
        }

        _writer.flush();
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

        {
            // escape every ' in the user event code since it will
            // be a string attribute of jsf.util.chain
            finalParams.add('\'' + escapeJavaScriptForChain(userEventCode) + '\'');
        }
        final MyfacesConfig currentInstance = MyfacesConfig
                .getCurrentInstance(externalContext);
        ScriptContext behaviorCode = new ScriptContext();
        ScriptContext retVal = new ScriptContext(currentInstance.isPrettyHtml());
        getClientBehaviorScript(facesContext, uiComponent, targetClientId,
                eventName, clientBehaviors, behaviorCode, params);
        if (behaviorCode != null
                && !behaviorCode.toString().trim().equals(STR_EMPTY))
        {
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

        if (userEventCode != null && !userEventCode.trim().equals(STR_EMPTY))
        {
            finalParams.add('\'' + escapeJavaScriptForChain(userEventCode) + '\'');
        }

        final MyfacesConfig currentInstance = MyfacesConfig
                .getCurrentInstance(externalContext);
        ScriptContext behaviorCode = new ScriptContext();
        ScriptContext retVal = new ScriptContext(currentInstance.isPrettyHtml());
        boolean submitting1 = getClientBehaviorScript(facesContext,
                uiComponent, targetClientId, eventName1, clientBehaviors,
                behaviorCode, params);
        ScriptContext behaviorCode2 = new ScriptContext();
        boolean submitting2 = getClientBehaviorScript(facesContext,
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

        {
            //No log if is disabled or is in auto mode and project stage is UnitTest or SystemTest
            return;
        }
       
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());
       
        if (myfacesConfig.isTomahawkAvailable())
        {
            if(myfacesConfig.isMyfacesImplAvailable())
            {
                if(log.isLoggable(Level.INFO))
                {
                    log.info("Starting up Tomahawk on the RI-JSF-Implementation.");
                }
            }

            if(myfacesConfig.isRiImplAvailable())
            {
                if(log.isLoggable(Level.INFO))
                {
                    log.info("Starting up Tomahawk on the MyFaces-JSF-Implementation");
                }
            }
        }
        else
        {
            if (log.isLoggable(Level.INFO))
            {
                log.info("Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.");
            }
        }

        if(myfacesConfig.isRiImplAvailable() && myfacesConfig.isMyfacesImplAvailable())
        {
            log.severe("Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.");
        }
       
       

        if (log.isLoggable(Level.INFO))
        {
            log.info("Scanning for context init parameters not defined. It is not necessary to define them all into your web.xml, " +
                     "they are just provided here for informative purposes. To disable this messages set " +
                     AbstractFacesInitializer.INIT_PARAM_LOG_WEB_CONTEXT_PARAMS + " config param to 'false'");
            String paramValue = null;

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.RESOURCE_EXCLUDES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.RESOURCE_EXCLUDES' found, using default value '.class .jsp .jspx .properties .xhtml .groovy'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.STATE_SAVING_METHOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.STATE_SAVING_METHOD' found, using default value 'server'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("server,client",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.STATE_SAVING_METHOD' (='" + paramValue + "'), using default value 'server'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FULL_STATE_SAVING_VIEW_IDS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FULL_STATE_SAVING_VIEW_IDS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.PARTIAL_STATE_SAVING");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.PARTIAL_STATE_SAVING' found, using default value 'true (false with 1.2 webapps)'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.PARTIAL_STATE_SAVING' (='" + paramValue + "'), using default value 'true (false with 1.2 webapps)'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DEFAULT_SUFFIX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DEFAULT_SUFFIX' found, using default value '.xhtml .view.xml .jsp'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_SUFFIX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_SUFFIX' found, using default value '.xhtml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_VIEW_MAPPINGS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_VIEW_MAPPINGS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.VALIDATE_EMPTY_FIELDS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("auto, true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.CONFIG_FILES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.CONFIG_FILES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.LIFECYCLE_ID");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.LIFECYCLE_ID' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_HANDLER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_HANDLER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.PRETTY_HTML");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.PRETTY_HTML' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALLOW_JAVASCRIPT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CONFIG_REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value '2'.");
            }
            else
            {
                try
                {
                    java.lang.Long.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' (='" + paramValue + "'), using default value '2'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VIEWSTATE_JAVASCRIPT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_VIEWSTATE_ID");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_XHTML_LINKS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DELEGATE_FACES_SERVLET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DELEGATE_FACES_SERVLET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false,auto",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VALIDATE_XML");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VALIDATE_XML' found.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.VALIDATE_XML' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DEBUG_PHASE_LISTENER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DEBUG_PHASE_LISTENER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FLASH_SCOPE_DISABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FLASH_SCOPE_DISABLED' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES' found, using default value '604800000'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_ENCRYPTION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_ENCRYPTION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_ENCRYPTION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SECRET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SECRET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM' found, using default value 'DES'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SECRET.CACHE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SECRET.CACHE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM.IV");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM.IV' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM.PARAMETERS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM.PARAMETERS' found, using default value 'ECB/PKCS5Padding'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERIAL_FACTORY");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERIAL_FACTORY' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.COMPRESS_STATE_IN_CLIENT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_ALGORITHM");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_ALGORITHM' found, using default value 'HmacSHA1'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_SECRET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_SECRET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_SECRET.CACHE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_SECRET.CACHE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.PROJECT_STAGE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.PROJECT_STAGE' found, using default value 'Production'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("Development, Production, SystemTest, UnitTest",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.PROJECT_STAGE' (='" + paramValue + "'), using default value 'Production'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS' found, using default value 'true'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VALIDATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VALIDATE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.VALIDATE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.annotation.SCAN_PACKAGES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.annotation.SCAN_PACKAGES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.config.annotation.LifecycleProvider");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.config.annotation.LifecycleProvider' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EL_RESOLVER_COMPARATOR");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EL_RESOLVER_COMPARATOR' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EL_RESOLVER_PREDICATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EL_RESOLVER_PREDICATE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_TEMPLATE_RESOURCE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_TEMPLATE_RESOURCE' found, using default value 'META-INF/rsc/myfaces-dev-error.xml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE' found, using default value 'META-INF/rsc/myfaces-dev-debug.xml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_HANDLING");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_HANDLING' found, using default value 'false, on Development Project stage: true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ERROR_HANDLING' (='" + paramValue + "'), using default value 'false, on Development Project stage: true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' found, using default value '20'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value '20'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' found.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERIALIZE_STATE_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.COMPRESS_STATE_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' found, using default value 'off'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("off, no, hard-soft, soft, soft-weak, weak",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' (='" + paramValue + "'), using default value 'off'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.JSF_JS_MODE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.JSF_JS_MODE' found, using default value 'normal'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("normal, minimal-modern, minimal",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.JSF_JS_MODE' (='" + paramValue + "'), using default value 'normal'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERVICE_PROVIDER_FINDER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERVICE_PROVIDER_FINDER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_BUFFER_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_BUFFER_SIZE' found.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.FACELETS_BUFFER_SIZE' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.BUFFER_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.BUFFER_SIZE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_DECORATORS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_DECORATORS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.DECORATORS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.DECORATORS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_LIBRARIES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_LIBRARIES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.LIBRARIES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.LIBRARIES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_REFRESH_PERIOD' found, using default value '-1'.");
            }
            else
            {
                try
                {
                    java.lang.Long.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.FACELETS_REFRESH_PERIOD' (='" + paramValue + "'), using default value '-1'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.REFRESH_PERIOD' found, using default value '-1'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_RESOURCE_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_RESOURCE_RESOLVER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.RESOURCE_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.RESOURCE_RESOLVER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_SKIP_COMMENTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_SKIP_COMMENTS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.SKIP_COMMENTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.SKIP_COMMENTS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CACHE_EL_EXPRESSIONS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CACHE_EL_EXPRESSIONS' found, using default value 'noCache'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("noCache, strict, allowCset, always",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CACHE_EL_EXPRESSIONS' (='" + paramValue + "'), using default value 'noCache'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EXPRESSION_FACTORY");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EXPRESSION_FACTORY' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, auto, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FACES_INITIALIZER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FACES_INITIALIZER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FACES_INIT_PLUGINS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FACES_INIT_PLUGINS' found.");
            }
        }
        if (log.isLoggable(Level.INFO) && myfacesConfig.isTomahawkAvailable())
        {
            String paramValue = null;

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_VIRTUAL_PATH");
            if (paramValue == null)
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

    private void writeViewStateField(FacesContext facesContext, ResponseWriter responseWriter, Object savedState)
        throws IOException
    {
        String serializedState = StateUtils.construct(savedState, facesContext.getExternalContext());
        ExternalContext extContext = facesContext.getExternalContext();
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(extContext);
        // Write Javascript viewstate if enabled and if javascript is allowed,
        // otherwise write hidden input
        if (JavascriptUtils.isJavascriptAllowed(extContext) && myfacesConfig.isViewStateJavascript())
        {
            HtmlRendererUtils.renderViewStateJavascript(facesContext, STANDARD_STATE_SAVING_PARAM, serializedState);
        }
        else
        {
            responseWriter.startElement(HTML.INPUT_ELEM, null);
            responseWriter.writeAttribute(HTML.TYPE_ATTR, HTML.INPUT_TYPE_HIDDEN, null);
            responseWriter.writeAttribute(HTML.NAME_ATTR, STANDARD_STATE_SAVING_PARAM, null);
            if (myfacesConfig.isRenderViewStateId())
            {
                responseWriter.writeAttribute(HTML.ID_ATTR, STANDARD_STATE_SAVING_PARAM, null);
            }
            responseWriter.writeAttribute(HTML.VALUE_ATTR, serializedState, null);
            responseWriter.endElement(HTML.INPUT_ELEM);
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

    @Override
    public ResponseWriter createResponseWriter(Writer writer, String contentTypeListString, String characterEncoding)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(
                facesContext.getExternalContext());
        String selectedContentType = null;
        String writerContentType = null;
        boolean isAjaxRequest = facesContext.getPartialViewContext().isAjaxRequest();
        String contentTypeListStringFromAccept = null;

        // To detect the right contentType, we need to check if the request is an ajax request or not.
        // If it is an ajax request, HTTP Accept header content type will be set for the ajax itself, which
        // is application/xml or text/xml. In that case, there are two response writers
        // (PartialResponseWriterImpl and HtmlResponseWriterImpl),
       
        //1. if there is a passed contentTypeListString, it takes precedence over accept header
        if (contentTypeListString != null)
        {
            selectedContentType = ContentTypeUtils.chooseWriterContentType(contentTypeListString,
                    ContentTypeUtils.HTML_ALLOWED_CONTENT_TYPES,
                    isAjaxRequest ? ContentTypeUtils.AJAX_XHTML_ALLOWED_CONTENT_TYPES :
                                    ContentTypeUtils.XHTML_ALLOWED_CONTENT_TYPES);
        }

        //2. If no selectedContentType
        //   try to derive it from accept header
        if (selectedContentType == null)
        {
            contentTypeListStringFromAccept =
                ContentTypeUtils.getContentTypeFromAcceptHeader(facesContext);
           
            if (contentTypeListStringFromAccept != null)
            {
                selectedContentType = ContentTypeUtils.chooseWriterContentType(contentTypeListStringFromAccept,
                        ContentTypeUtils.HTML_ALLOWED_CONTENT_TYPES,
                        isAjaxRequest ? ContentTypeUtils.AJAX_XHTML_ALLOWED_CONTENT_TYPES :
                                        ContentTypeUtils.XHTML_ALLOWED_CONTENT_TYPES);
            }
        }

        //3. if no selectedContentType was derived, set default from the param
        if (selectedContentType == null)
        {
            if (contentTypeListString == null && contentTypeListStringFromAccept == null)
            {
                //If no contentTypeList, return the default
                selectedContentType = myfacesConfig.getDefaultResponseWriterContentTypeMode();
            }
            else
            {
                // If a contentTypeList was passed and we don't have direct matches, we still need
                // to check if */* is found and if that so return the default, otherwise throw
                // exception.
                if (contentTypeListString != null)
                {
                    String[] contentTypes = ContentTypeUtils.splitContentTypeListString(contentTypeListString);
                    if (ContentTypeUtils.containsContentType(ContentTypeUtils.ANY_CONTENT_TYPE, contentTypes))
                    {
                        selectedContentType = myfacesConfig.getDefaultResponseWriterContentTypeMode();
                    }
                }
               
                if (selectedContentType == null && contentTypeListStringFromAccept != null)
                {
                    String[] contentTypes = ContentTypeUtils.splitContentTypeListString(
                            contentTypeListStringFromAccept);
                    if (ContentTypeUtils.containsContentType(ContentTypeUtils.ANY_CONTENT_TYPE, contentTypes))
                    {
                        selectedContentType = myfacesConfig.getDefaultResponseWriterContentTypeMode();
                    }
                }
               
                if (selectedContentType == null)
                {
                    throw new IllegalArgumentException(
                            "ContentTypeList does not contain a supported content type: "
                                    + contentTypeListString != null ?
                                            contentTypeListString : contentTypeListStringFromAccept);
                }
            }
        }
        if (isAjaxRequest)
        {
            // If HTTP Accept header has application/xml or text/xml, that does not means the writer
            // content type mode should be set to application/xhtml+xml.
            writerContentType = selectedContentType.indexOf(ContentTypeUtils.XHTML_CONTENT_TYPE) != -1 ?
                    ContentTypeUtils.XHTML_CONTENT_TYPE : ContentTypeUtils.HTML_CONTENT_TYPE;
        }
        else
        {
            writerContentType = HtmlRendererUtils.isXHTMLContentType(selectedContentType) ?
                    ContentTypeUtils.XHTML_CONTENT_TYPE : ContentTypeUtils.HTML_CONTENT_TYPE;;
        }
       
        if (characterEncoding == null)
        {
            characterEncoding = HtmlRendererUtils.DEFAULT_CHAR_ENCODING;
        }

        return new HtmlResponseWriterImpl(writer, selectedContentType, characterEncoding,
                myfacesConfig.isWrapScriptContentWithXmlCommentTag(),
                        writerContentType);
    }
View Full Code Here

Examples of org.apache.myfaces.shared.config.MyfacesConfig

        {
            //No log if is disabled or is in auto mode and project stage is UnitTest or SystemTest
            return;
        }
       
        MyfacesConfig myfacesConfig = MyfacesConfig.getCurrentInstance(facesContext.getExternalContext());
       
        if (myfacesConfig.isTomahawkAvailable())
        {
            if(myfacesConfig.isMyfacesImplAvailable())
            {
                if(log.isLoggable(Level.INFO))
                {
                    log.info("Starting up Tomahawk on the RI-JSF-Implementation.");
                }
            }

            if(myfacesConfig.isRiImplAvailable())
            {
                if(log.isLoggable(Level.INFO))
                {
                    log.info("Starting up Tomahawk on the MyFaces-JSF-Implementation");
                }
            }
        }
        else
        {
            if (log.isLoggable(Level.INFO))
            {
                log.info("Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.");
            }
        }

        if(myfacesConfig.isRiImplAvailable() && myfacesConfig.isMyfacesImplAvailable())
        {
            log.severe("Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.");
        }
       
       

        if (log.isLoggable(Level.INFO))
        {
            log.info("Scanning for context init parameters not defined. It is not necessary to define them all into your web.xml, " +
                     "they are just provided here for informative purposes. To disable this messages set " +
                     AbstractFacesInitializer.INIT_PARAM_LOG_WEB_CONTEXT_PARAMS + " config param to 'false'");
            String paramValue = null;

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.RESOURCE_EXCLUDES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.RESOURCE_EXCLUDES' found, using default value '.class .jsp .jspx .properties .xhtml .groovy'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.STATE_SAVING_METHOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.STATE_SAVING_METHOD' found, using default value 'server'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("server,client",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.STATE_SAVING_METHOD' (='" + paramValue + "'), using default value 'server'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FULL_STATE_SAVING_VIEW_IDS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FULL_STATE_SAVING_VIEW_IDS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.PARTIAL_STATE_SAVING");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.PARTIAL_STATE_SAVING' found, using default value 'true (false with 1.2 webapps)'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.PARTIAL_STATE_SAVING' (='" + paramValue + "'), using default value 'true (false with 1.2 webapps)'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DEFAULT_SUFFIX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DEFAULT_SUFFIX' found, using default value '.xhtml .view.xml .jsp'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_SUFFIX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_SUFFIX' found, using default value '.xhtml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_VIEW_MAPPINGS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_VIEW_MAPPINGS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.HONOR_CURRENT_COMPONENT_ATTRIBUTES' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.VALIDATE_EMPTY_FIELDS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("auto, true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.VALIDATE_EMPTY_FIELDS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ENUM_CONVERTER_ALLOW_STRING_PASSTROUGH' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.CONFIG_FILES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.CONFIG_FILES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.LIFECYCLE_ID");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.LIFECYCLE_ID' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_HANDLER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_HANDLER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.PRETTY_HTML");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.PRETTY_HTML' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALLOW_JAVASCRIPT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CONFIG_REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value '2'.");
            }
            else
            {
                try
                {
                    java.lang.Long.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' (='" + paramValue + "'), using default value '2'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VIEWSTATE_JAVASCRIPT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_VIEWSTATE_ID");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_XHTML_LINKS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DELEGATE_FACES_SERVLET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DELEGATE_FACES_SERVLET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false,auto",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VALIDATE_XML");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VALIDATE_XML' found.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.VALIDATE_XML' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false, on, off, yes, no",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equalsIgnoreCase(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DEBUG_PHASE_LISTENER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DEBUG_PHASE_LISTENER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_JSF_2_REFRESH_TARGET_AJAX' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.STRICT_JSF_2_CC_EL_RESOLVER' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE' found, using default value 'text/html'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("text/html, application/xhtml+xml",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.DEFAULT_RESPONSE_WRITER_CONTENT_TYPE_MODE' (='" + paramValue + "'), using default value 'text/html'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FLASH_SCOPE_DISABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FLASH_SCOPE_DISABLED' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES' found, using default value '604800000'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.RESOURCE_HANDLER_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_ENCRYPTION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_ENCRYPTION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_ENCRYPTION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SECRET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SECRET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM' found, using default value 'DES'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SECRET.CACHE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SECRET.CACHE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM.IV");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM.IV' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ALGORITHM.PARAMETERS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ALGORITHM.PARAMETERS' found, using default value 'ECB/PKCS5Padding'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERIAL_FACTORY");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERIAL_FACTORY' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.COMPRESS_STATE_IN_CLIENT");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_CLIENT' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_ALGORITHM");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_ALGORITHM' found, using default value 'HmacSHA1'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_SECRET");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_SECRET' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MAC_SECRET.CACHE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MAC_SECRET.CACHE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.PROJECT_STAGE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.PROJECT_STAGE' found, using default value 'Production'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("Development, Production, SystemTest, UnitTest",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.PROJECT_STAGE' (='" + paramValue + "'), using default value 'Production'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.LAZY_LOAD_CONFIG_OBJECTS' found, using default value 'true'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.VALIDATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.VALIDATE' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.VALIDATE' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.annotation.SCAN_PACKAGES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.annotation.SCAN_PACKAGES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.config.annotation.LifecycleProvider");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.config.annotation.LifecycleProvider' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EL_RESOLVER_COMPARATOR");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EL_RESOLVER_COMPARATOR' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EL_RESOLVER_PREDICATE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EL_RESOLVER_PREDICATE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' found, using default value '500'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_SIZE' (='" + paramValue + "'), using default value '500'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CHECKED_VIEWID_CACHE_ENABLED' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_TEMPLATE_RESOURCE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_TEMPLATE_RESOURCE' found, using default value 'META-INF/rsc/myfaces-dev-error.xml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.DEBUG_TEMPLATE_RESOURCE' found, using default value 'META-INF/rsc/myfaces-dev-debug.xml'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.ERROR_HANDLING");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.ERROR_HANDLING' found, using default value 'false, on Development Project stage: true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.ERROR_HANDLING' (='" + paramValue + "'), using default value 'false, on Development Project stage: true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' found, using default value '20'.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value '20'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' found.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERIALIZE_STATE_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SERIALIZE_STATE_IN_SESSION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.COMPRESS_STATE_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.COMPRESS_STATE_IN_SESSION' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' found, using default value 'off'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("off, no, hard-soft, soft, soft-weak, weak",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CACHE_OLD_VIEWS_IN_SESSION_MODE' (='" + paramValue + "'), using default value 'off'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_FLASH_SCOPE_PURGE_VIEWS_IN_SESSION' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.HANDLE_STATE_CACHING_MECHANICS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.JSF_JS_MODE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.JSF_JS_MODE' found, using default value 'normal'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("normal, minimal-modern, minimal",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.JSF_JS_MODE' (='" + paramValue + "'), using default value 'normal'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SERVICE_PROVIDER_FINDER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SERVICE_PROVIDER_FINDER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true,false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.SAVE_STATE_WITH_VISIT_TREE_ON_PSS' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_BUFFER_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_BUFFER_SIZE' found.");
            }
            else
            {
                try
                {
                    java.lang.Integer.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.FACELETS_BUFFER_SIZE' (='" + paramValue + "'), using default value 'null'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.BUFFER_SIZE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.BUFFER_SIZE' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_DECORATORS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_DECORATORS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.DECORATORS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.DECORATORS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_LIBRARIES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_LIBRARIES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.LIBRARIES");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.LIBRARIES' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_REFRESH_PERIOD' found, using default value '-1'.");
            }
            else
            {
                try
                {
                    java.lang.Long.valueOf(paramValue);
                }
                catch(Exception e)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'javax.faces.FACELETS_REFRESH_PERIOD' (='" + paramValue + "'), using default value '-1'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.REFRESH_PERIOD");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.REFRESH_PERIOD' found, using default value '-1'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_RESOURCE_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_RESOURCE_RESOLVER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.RESOURCE_RESOLVER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.RESOURCE_RESOLVER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("javax.faces.FACELETS_SKIP_COMMENTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'javax.faces.FACELETS_SKIP_COMMENTS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("facelets.SKIP_COMMENTS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'facelets.SKIP_COMMENTS' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' found, using default value 'false'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.MARK_INITIAL_STATE_WHEN_APPLY_BUILD_VIEW' (='" + paramValue + "'), using default value 'false'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' found, using default value 'true'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.WRAP_TAG_EXCEPTIONS_AS_CONTEXT_AWARE' (='" + paramValue + "'), using default value 'true'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.CACHE_EL_EXPRESSIONS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.CACHE_EL_EXPRESSIONS' found, using default value 'noCache'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("noCache, strict, allowCset, always",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.CACHE_EL_EXPRESSIONS' (='" + paramValue + "'), using default value 'noCache'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.EXPRESSION_FACTORY");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.EXPRESSION_FACTORY' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.INITIALIZE_ALWAYS_STANDALONE' found, using default value 'false'.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' found, using default value 'auto'.");
            }
            else
            {
                boolean found = false;
                String[] expectedValues = StringUtils.trim(StringUtils.splitShortString("true, auto, false",','));
                for (int i = 0; i < expectedValues.length; i++)
                {
                    if (paramValue.equals(expectedValues[i]))
                    {
                        found = true;
                        break;
                    }
                }
                if (!found)
                {
                    if (log.isLoggable(Level.WARNING))
                    {
                        log.warning("Wrong value in context init parameter 'org.apache.myfaces.LOG_WEB_CONTEXT_PARAMS' (='" + paramValue + "'), using default value 'auto'");
                    }
                }
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FACES_INITIALIZER");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FACES_INITIALIZER' found.");
            }

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.FACES_INIT_PLUGINS");
            if (paramValue == null)
            {
                log.info("No context init parameter 'org.apache.myfaces.FACES_INIT_PLUGINS' found.");
            }
        }
        if (log.isLoggable(Level.INFO) && myfacesConfig.isTomahawkAvailable())
        {
            String paramValue = null;

            paramValue = facesContext.getExternalContext().getInitParameter("org.apache.myfaces.RESOURCE_VIRTUAL_PATH");
            if (paramValue == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.