Package org.apache.myfaces.extensions.cdi.jsf.api.config

Examples of org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig


        return ClassDeactivation.isClassActivated(getClass());
    }

    private boolean isAddViewConfigsAsNavigationCaseActivated()
    {
        JsfModuleConfig config = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        return config.isUseViewConfigsAsNavigationCasesEnabled();
    }
View Full Code Here


        return Boolean.TRUE.equals(externalContext.getRequestMap().get(JsfUtils.FACES_CONTEXT_MANUAL_WRAPPER_KEY));
    }

    private static void saveFacesMessages(ExternalContext externalContext)
    {
        JsfModuleConfig jsfModuleConfig = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        if(jsfModuleConfig != null && jsfModuleConfig.isAlwaysKeepMessages())
        {
            Map<String, Object> requestMap = externalContext.getRequestMap();

            @SuppressWarnings({"unchecked"})
            List<FacesMessageEntry> facesMessageEntryList =
View Full Code Here

        return ClassDeactivation.isClassActivated(getClass());
    }

    private boolean isAddViewConfigsAsNavigationCaseActivated()
    {
        JsfModuleConfig config = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        return config.isUseViewConfigsAsNavigationCasesEnabled();
    }
View Full Code Here

        }
    }

    private static void saveFacesMessages(ExternalContext externalContext)
    {
        JsfModuleConfig jsfModuleConfig = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        if(jsfModuleConfig != null && jsfModuleConfig.isAlwaysKeepMessages())
        {
            Map<String, Object> requestMap = externalContext.getRequestMap();

            @SuppressWarnings({"unchecked"})
            List<FacesMessageEntry> facesMessageEntryList =
View Full Code Here

        return ClassDeactivation.isClassActivated(getClass());
    }

    private boolean isAddViewConfigsAsNavigationCaseActivated()
    {
        JsfModuleConfig config = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        return config.isUseViewConfigsAsNavigationCasesEnabled();
    }
View Full Code Here

        }
    }

    private static void saveFacesMessages(ExternalContext externalContext)
    {
        JsfModuleConfig jsfModuleConfig = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        if(jsfModuleConfig != null && jsfModuleConfig.isAlwaysKeepMessages())
        {
            Map<String, Object> requestMap = externalContext.getRequestMap();

            @SuppressWarnings({"unchecked"})
            List<FacesMessageEntry> facesMessageEntryList =
View Full Code Here

        }
    }

    private static void saveFacesMessages(ExternalContext externalContext)
    {
        JsfModuleConfig jsfModuleConfig = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        if(jsfModuleConfig != null && jsfModuleConfig.isAlwaysKeepMessages())
        {
            Map<String, Object> requestMap = externalContext.getRequestMap();

            @SuppressWarnings({"unchecked"})
            List<FacesMessageEntry> facesMessageEntryList =
View Full Code Here

public class JsfModuleConfigTest
{
    @Test
    public void testAlternativeCodiCoreConfig()
    {
        JsfModuleConfig jsfModuleConfig = new AlternativeJsfModuleConfig();

        assertEquals(jsfModuleConfig.isAlwaysKeepMessages(), true);
        assertEquals(jsfModuleConfig.isInitialRedirectEnabled(), true);
        assertEquals(jsfModuleConfig.isInvalidValueAwareMessageInterpolatorEnabled(), true);
        assertEquals(jsfModuleConfig.isUseViewConfigsAsNavigationCasesEnabled(), true);
    }
View Full Code Here

        return ClassDeactivation.isClassActivated(getClass());
    }

    private boolean isAddViewConfigsAsNavigationCaseActivated()
    {
        JsfModuleConfig config = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        return config.isUseViewConfigsAsNavigationCasesEnabled();
    }
View Full Code Here

        return Boolean.TRUE.equals(externalContext.getRequestMap().get(JsfUtils.FACES_CONTEXT_MANUAL_WRAPPER_KEY));
    }

    private static void saveFacesMessages(ExternalContext externalContext)
    {
        JsfModuleConfig jsfModuleConfig = CodiUtils.getContextualReferenceByClass(JsfModuleConfig.class);

        if(jsfModuleConfig != null && jsfModuleConfig.isAlwaysKeepMessages())
        {
            Map<String, Object> requestMap = externalContext.getRequestMap();

            @SuppressWarnings({"unchecked"})
            List<FacesMessageEntry> facesMessageEntryList =
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig

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