Examples of HtmlInputText


Examples of javax.faces.component.html.HtmlInputText

*/
public class HtmlFormBuilderNumber extends HtmlFormBuilderItem {

    @Override
    public void renderView() {
        HtmlInputText input = new HtmlInputText();
        input.setStyleClass("number");
       
        if (isDisabled()) {
            input.setDisabled(true);
        }
        if (getNumberValue() != null) {
            input.setValue(String.valueOf(getNumberValue()).replaceAll("\\.", ","));
        } else {
            input.setValue("");
        }
        if (getDataUuid() != null) {
            input.setId(getDataUuid());
        }

        HtmlCustomOutputLabel output = new HtmlCustomOutputLabel(properties);

        addLabeledComponent(output, input, "text-align:right; width: 100%;");
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

*/
public class HtmlFormBuilderDate extends HtmlFormBuilderItem {

    @Override
    public void renderView() {
        HtmlInputText input = new HtmlInputText();
        input.setStyleClass("datepicker");
        String backgroundColor = "";
        if (isDisabled()) {
            input.setDisabled(true);
        } else {
            backgroundColor = "background-color: white;";
        }
        if (getValue() != null) {
            input.setValue(getValue());
        } else {
            if (properties.getValues() == null) {
                input.setValue("");
            } else {
                input.setValue(properties.getValues());
            }
        }
        if (getDataUuid() != null) {
            input.setId(getDataUuid());
        }
        input.setReadonly(true);

        HtmlCustomOutputLabel output = new HtmlCustomOutputLabel(properties);

        addLabeledComponent(output, input, "width: 10em;" + backgroundColor);
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

*/
public class HtmlFormBuilderInput extends HtmlFormBuilderItem {

    @Override
    public void renderView() {
        HtmlInputText input = new HtmlInputText();
        if (isDisabled()) {
            input.setDisabled(true);
        }
        if (getValue() != null) {
            input.setValue(getValue());
        } else {
            if (properties.getValues() == null) {
                input.setValue("");
            } else {
                input.setValue(properties.getValues());
            }
        }
        if (getDataUuid() != null) {
            input.setId(getDataUuid());
        }

        HtmlCustomOutputLabel output = new HtmlCustomOutputLabel(properties);

        addLabeledComponent(output, input);
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        rootComponent = new UIViewRoot();
        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);
        inputComponent1 = new HtmlInputText();
        form.getChildren().add(inputComponent1);
        inputComponent1.setId("input1");
        inputComponent2 = new HtmlInputText();
        form.getChildren().add(inputComponent2);
        inputComponent2.setId("input2");
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        rootComponent = new UIViewRoot();
        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);
        inputComponent1 = new HtmlInputText();
        form.getChildren().add(inputComponent1);
        inputComponent1.setId("input1");
        inputComponent2 = new HtmlInputText();
        form.getChildren().add(inputComponent2);
        inputComponent2.setId("input2");

        DateTimeConverter converter = new DateTimeConverter();
        converter.setPattern("DD/MM/yyyy");
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        rootComponent = new UIViewRoot();
        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);
        inputComponent1 = new HtmlInputText();
        form.getChildren().add(inputComponent1);
        inputComponent1.setId("input1");
        inputComponent2 = new HtmlInputText();
        form.getChildren().add(inputComponent2);
        inputComponent2.setId("input2");
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        rootComponent = new UIViewRoot();
        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);
        inputComponent1 = new HtmlInputText();
        form.getChildren().add(inputComponent1);
        inputComponent1.setId("input1");
        inputComponent2 = new HtmlInputText();
        form.getChildren().add(inputComponent2);
        inputComponent2.setId("input2");
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        rootComponent = new UIViewRoot();
        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);
        inputComponent1 = new HtmlInputText();
        form.getChildren().add(inputComponent1);
        inputComponent1.setId("input1");
        inputComponent2 = new HtmlInputText();
        form.getChildren().add(inputComponent2);
        inputComponent2.setId("input2");
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

        HtmlForm form = new HtmlForm();
        form.setId("form");
        rootComponent.getChildren().add(form);

        //input1
        inputComponent1 = new HtmlInputText();
        inputComponent1.setId("input1");
        inputComponent1.setConverter(new DateTimeConverter());
        ((DateTimeConverter)inputComponent1.getConverter()).setPattern("dd.MM.yyyy");
        form.getChildren().add(inputComponent1);

        //input2
        inputComponent2 = new HtmlInputText();
        inputComponent2.setId("input2");
        inputComponent2.setConverter(new DateTimeConverter());
        ((DateTimeConverter)inputComponent2.getConverter()).setPattern("dd.MM.yyyy");
        form.getChildren().add(inputComponent2);
    }
View Full Code Here

Examples of javax.faces.component.html.HtmlInputText

            {
                return;
            }
            if(uiComponent instanceof HtmlInputText)
            {
                HtmlInputText htmlInputText = (HtmlInputText)uiComponent;
                htmlInputText.setMaxlength((Integer)maxLength);
            }
            else if(uiComponent instanceof HtmlInputSecret)
            {
                HtmlInputSecret htmlInputSecret = (HtmlInputSecret)uiComponent;
                htmlInputSecret.setMaxlength((Integer)maxLength);
View Full Code Here
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.