Package org.openfaces.component.input

Examples of org.openfaces.component.input.InputText


        return "input";
    }

    protected void writeCustomAttributes(FacesContext context, OUIInputText input) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        InputText inputText = (InputText) input;
        String value = getConvertedValue(context, inputText);
        if (!"".equals(value))
            writeAttribute(writer, "value", value);
        writeAttribute(writer, "type", "text");
        Rendering.writeAttributes(writer, inputText, "dir", "lang", "alt", "onselect");
        writeAttribute(writer, "maxlength", inputText.getMaxlength(), Integer.MIN_VALUE);
        writeAttribute(writer, "size", inputText.getSize(), Integer.MIN_VALUE);
        if (inputText.isReadonly())
            writeAttribute(writer, "readonly", "readonly");
    }
View Full Code Here


            "alt",
            "autocomplete"
    };

    protected void configureInputComponent(FacesContext context, ExpressionFilter filter, UIInput inputComponent) {
        InputText input = (InputText) inputComponent;
        input.setOnkeydown(getFilterKeyPressScript(filter) + "O$.stopEvent(event);");
        input.setOnchange(getFilterSubmissionScript(filter));
        input.setStyle(filter.getStyle());
        input.setStyleClass(Styles.mergeClassNames(filter.getStyleClass(), "o_fullWidth"));
    }
View Full Code Here

TOP

Related Classes of org.openfaces.component.input.InputText

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.