Package org.openfaces.component.input

Examples of org.openfaces.component.input.InputTextarea


        return "textarea";
    }

    protected void writeCustomAttributes(FacesContext context, OUIInputText input) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        InputTextarea inputTextarea = (InputTextarea) input;
        writeAttribute(writer, "cols", inputTextarea.getCols(), Integer.MIN_VALUE);
        writeAttribute(writer, "rows", inputTextarea.getRows(), Integer.MIN_VALUE);

        if (inputTextarea.isReadonly())
            writeAttribute(writer, "readonly", "readonly");
    }
View Full Code Here


    }

    @Override
    protected void encodeInitScript(FacesContext context, OUIInputText inputText) throws IOException {
        super.encodeInitScript(context, inputText);
        InputTextarea inputTextarea = (InputTextarea) inputText;
        if (inputTextarea.isAutoGrowing()) {
            ScriptBuilder scriptBuilder = new ScriptBuilder();
            scriptBuilder.initScript(context, inputTextarea, "O$.InputTextarea._init", inputTextarea.getId());
            Rendering.renderInitScript(context, scriptBuilder,
                    Resources.utilJsURL(context),
                    Resources.internalURL(context, "input/inputTextarea.js")
            );
        }
View Full Code Here

TOP

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

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.