Examples of ValidatorBean


Examples of org.apache.shale.clay.config.beans.ValidatorBean

     * @inheritDoc
     * @param node markup
     * @param target child config bean
     */
    protected void addValidator(Node node, ElementBean target) {
        ValidatorBean targetValidator = new ValidatorBean();

        //make sure we have the correct jsfid based on the namespace prefix
        Builder tmpBuilder = getBuilder(node);
        ElementBean tmp = tmpBuilder.createElement(node);

        String jsfid = tmp.getJsfid();
        targetValidator.setJsfid(jsfid);

        String validatorId = (String) node.getAttributes().get("validatorId");
        if (validatorId != null) {
            targetValidator.setComponentType(tagsUtil.evalString(validatorId));
        }

        // resolve inheritance and attribute overrides
        if (node.getAttributes().containsKey("extends") || !jsfid.equals("validator")) {
            realizeComponent(node, targetValidator);
        }

        //attach to the target element
        target.addValidator(targetValidator);

        if (node.getName().equals("commonsValidator")) {
            //You can use multiple commonsValidators per component.  The
            //jsfid is the key in the ComponentBean's validator set.
            //Override with the unique type attribute
            String type = (String) node.getAttributes().get("type");
            targetValidator.setJsfid((String) validatorsByType.get(type));

            //add support for the validatorVar JSP tag.
            addValidatorVar(node, targetValidator);
        }

Examples of org.apache.shale.clay.config.beans.ValidatorBean

        if (displayElement.getValidators().size() > 0) {
            if (child instanceof EditableValueHolder) {

                Iterator vi = displayElement.getValidatorIterator();
                while (vi.hasNext()) {
                    ValidatorBean validator = (ValidatorBean) vi.next();

                    ClayContext subContext = (ClayContext) clayContext.clone();
                    subContext.setDisplayElement(validator);
                    subContext.setParent(child);

Examples of org.apache.webbeans.component.javaee.ValidatorBean

       
        //Register Event Bean
        beanManager.addBean(WebBeansUtil.getEventBean());
       
        //Register Validator Bean
        beanManager.addBean(new ValidatorBean());
       
        //Register ValidatorFactory Bean
        beanManager.addBean(new ValidatorFactoryBean());
       
        //Register Principal Bean

Examples of org.hibernate.validator.internal.cdi.ValidatorBean

            beanManagerMock,
            validationProviderHelper
        )
    );
    expect( processBeanMock.getBean() ).andReturn(
        new ValidatorBean(
            beanManagerMock,
            validatorFactoryBeanMock,
            validationProviderHelper
        )
    );
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.