Package org.apache.myfaces.extensions.validator.core.el

Examples of org.apache.myfaces.extensions.validator.core.el.ELHelper


    }

    @Test
    public void testDeactivateElResolverWebXml()
    {
        ELHelper elHelper = new CustomDefaultELHelper();
        // When deactivated, the getPropertyDetailsViaReflectionFallback method
        // is called which returns null in our custom version
        Assert.assertNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));
    }
View Full Code Here


    }

    @Test
    public void testDeactivateElResolverCustomConfig()
    {
        ELHelper elHelper = new CustomDefaultELHelper();
        // When deactivated, the getPropertyDetailsViaReflectionFallback method
        // is called which returns null in our custom version
        Assert.assertNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));
    }
View Full Code Here

        applyCustomConfigurations();

        // This triggers already the config object.  So it is possible that you
        // need to set your custom config also in the getCustomConfigObjects method.
        final ELHelper defaultElHelper = ExtValUtils.getELHelper();
        ExtValContext.getContext().getFactoryFinder()
                .getFactory(FactoryNames.EL_HELPER_FACTORY, AbstractELHelperFactory.class)
                .setCustomELHelperFactory(new AbstractELHelperFactory() {

                    protected ELHelper createELHelper()
View Full Code Here

        }
    }

    private boolean isValidationPermitted(BeanValidation beanValidation)
    {
        ELHelper elHelper = ExtValUtils.getELHelper();

        for (String condition : beanValidation.conditions())
        {
            if (elHelper.isELTermWellFormed(condition) &&
                    elHelper.isELTermValid(FacesContext.getCurrentInstance(), condition))
            {
                if (Boolean.TRUE.equals(elHelper.getValueOfExpression(
                        FacesContext.getCurrentInstance(), new ValueBindingExpression(condition))))
                {
                    return true;
                }
            }
View Full Code Here

        }
    }

    public void testDeactivateElResolverDefault()
    {
        ELHelper elHelper = new CustomDefaultELHelper();
        assertNotNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));

    }
View Full Code Here

    }

    public void testDeactivateElResolverWebXml()
    {
        ELHelper elHelper = new CustomDefaultELHelper();
        // When deactivated, the getPropertyDetailsViaReflectionFallback method
        // is called which returns null in our custom version
        assertNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));
    }
View Full Code Here

        assertNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));
    }

    public void testDeactivateElResolverCustomConfig()
    {
        ELHelper elHelper = new CustomDefaultELHelper();
        // When deactivated, the getPropertyDetailsViaReflectionFallback method
        // is called which returns null in our custom version
        assertNull(elHelper.getPropertyDetailsOfValueBinding(uiComponent));
    }
View Full Code Here

        if(actionExpression == null)
        {
            return;
        }

        ELHelper elHelper = ExtValUtils.getELHelper();
        String actionString = actionExpression.getExpressionString();
        if(!elHelper.isELTermWellFormed(actionString))
        {
            return;
        }

        ValueBindingExpression valueBindingExpression = new ValueBindingExpression(actionString);
View Full Code Here

            return;
        }

        List<MethodExpression> listenerExpressions = ((ExtValAjaxBehavior)ajaxBehavior).getListenerExpressions();

        ELHelper elHelper = ExtValUtils.getELHelper();

        for (MethodExpression listenerExpression : listenerExpressions)
        {
            String actionString = listenerExpression.getExpressionString();
            if(!elHelper.isELTermWellFormed(actionString))
            {
                continue;
            }

            ValueBindingExpression valueBindingExpression = new ValueBindingExpression(actionString);
View Full Code Here

        if(actionExpression == null)
        {
            return;
        }

        ELHelper elHelper = ExtValUtils.getELHelper();
        String actionString = actionExpression.getExpressionString();
        if(!elHelper.isELTermWellFormed(actionString))
        {
            return;
        }

        ValueBindingExpression valueBindingExpression = new ValueBindingExpression(actionString);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.extensions.validator.core.el.ELHelper

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.