private static UIInput createInputForStringProperty() { HtmlInputText inputText = FacesComponentUtility.createComponent(HtmlInputText.class, null); //TODO: check if this has units, then apply the correct style inputText.setStyleClass(CssStyleClasses.PROPERTY_VALUE_INPUT); // inputText.setStyle(INPUT_TEXT_WIDTH_STYLE_WITH_UNITS); inputText.setMaxlength(PropertySimple.MAX_VALUE_LENGTH); // Disable browser auto-completion. inputText.setAutocomplete("off"); return inputText; }