Package pt.ist.fenixWebFramework.renderers.components

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlSimpleValueComponent


        super(htmlChainValidator);
    }

    @Override
    public void performValidation() {
        HtmlSimpleValueComponent component = (HtmlSimpleValueComponent) getComponent();

        String value = component.getValue();

        if (value == null || value.length() == 0) {
            setMessage("renderers.validator.dateTime.required");
            setValid(!isRequired());
        } else {
View Full Code Here


        setMessage("renderers.validator.autoComplete.required");
    }

    @Override
    public void performValidation() {
        HtmlSimpleValueComponent component = (HtmlSimpleValueComponent) getComponent();

        String value = component.getValue();
        if (value == null || value.length() == 0 || value.equals(AutoCompleteInputRenderer.TYPING_VALUE)) {
            setValid(false);
        } else {
            setValid(true);
        }
View Full Code Here

        this.required = required;
    }

    @Override
    public void performValidation() {
        HtmlSimpleValueComponent component = (HtmlSimpleValueComponent) getComponent();

        String value = component.getValue();

        if (value == null || value.length() == 0) {
            setMessage("renderers.validator.dateTime.required");
            setValid(!isRequired());
        } else {
View Full Code Here

                menu.setController(new HtmlController() {

                    @Override
                    public void execute(IViewState viewState) {
                        HtmlSimpleValueComponent component = (HtmlSimpleValueComponent) getControlledComponent();
                        value.setConverter(new GradeConverter(component.getValue()));
                    }

                });

                container.addChild(value);
View Full Code Here

        }

        @Override
        public void performValidation() {

            final HtmlSimpleValueComponent component = (HtmlSimpleValueComponent) getComponent();
            final String value = component.getValue();

            if (value == null || value.length() == 0) {
                setMessage("renderers.validator.captcha.required");
                setValid(false);
            } else {
View Full Code Here

TOP

Related Classes of pt.ist.fenixWebFramework.renderers.components.HtmlSimpleValueComponent

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.