Package net.sourceforge.stripes.validation

Examples of net.sourceforge.stripes.validation.BooleanTypeConverter


     * attribute will be set to "multiple", otherwise the attribute will not be output.
     */
    public void setMultiple(String multiple) {
        boolean isMultiple = "multiple".equalsIgnoreCase(multiple) || "".equals(multiple);
        if (!isMultiple) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isMultiple = converter.convert(multiple, Boolean.class, null);
        }

        if (isMultiple) {
            set("multiple", "multiple");
        }
View Full Code Here


            // even when validation errors already exist
            String callValidateWhenErrorsExist = StripesFilter.getConfiguration()
                .getBootstrapPropertyResolver().getProperty(RUN_CUSTOM_VALIDATION_WHEN_ERRORS);

            if (callValidateWhenErrorsExist != null) {
                BooleanTypeConverter c = new BooleanTypeConverter();
                this.alwaysInvokeValidate = c.convert(callValidateWhenErrorsExist, Boolean.class, null);
            }
            else {
                this.alwaysInvokeValidate = false; // Default behaviour
            }
        }
View Full Code Here

     * to the tag, otherwise does not.
     */
    public void setDisabled(String disabled) {
        boolean isDisabled = "disabled".equalsIgnoreCase(disabled);
        if (!isDisabled) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isDisabled = converter.convert(disabled, Boolean.class, null);
        }

        if (isDisabled) {
            set("disabled", "disabled");
        }
View Full Code Here

     * because it is not a simple one-liner and is used by more than one tag.</p>
     */
    public void setReadonly(String readonly) {
        boolean isReadOnly = "readonly".equalsIgnoreCase(readonly);
        if (!isReadOnly) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isReadOnly = converter.convert(readonly, Boolean.class, null);
        }

        if (isReadOnly) {
            set("readonly", "readonly");
        }
View Full Code Here

     * attribute will be set to "multiple", otherwise the attribute will not be output.
     */
    public void setMultiple(String multiple) {
        boolean isMultiple = "multiple".equalsIgnoreCase(multiple) || "".equals(multiple);
        if (!isMultiple) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isMultiple = converter.convert(multiple, Boolean.class, null);
        }

        if (isMultiple) {
            set("multiple", "multiple");
        }
View Full Code Here

     * to the tag, otherwise does not.
     */
    public void setDisabled(String disabled) {
        boolean isDisabled = "disabled".equalsIgnoreCase(disabled);
        if (!isDisabled) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isDisabled = converter.convert(disabled, Boolean.class, null);
        }

        if (isDisabled) {
            set("disabled", "disabled");
        }
View Full Code Here

     * because it is not a simple one-liner and is used by more than one tag.</p>
     */
    public void setReadonly(String readonly) {
        boolean isReadOnly = "readonly".equalsIgnoreCase(readonly);
        if (!isReadOnly) {
            BooleanTypeConverter converter = new BooleanTypeConverter();
            isReadOnly = converter.convert(readonly, Boolean.class, null);
        }

        if (isReadOnly) {
            set("readonly", "readonly");
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.validation.BooleanTypeConverter

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.