/** {@inheritDoc} */ @Override protected UIInput createInput(final PropertyDescriptor<P, E> property, final RenderContext context) { final HtmlInputSecret input = new HtmlInputSecret(); input.setStyleClass(context.resolveStyleClass(JsfStyleClasses.FORM_INPUT_SECRET)); return input; }
@Override public UIInput createInput() { HtmlInputSecret inputUser = new HtmlInputSecret(); LengthValidator validator = new LengthValidator(); if (getMaxLenght() != null) { inputUser.setSize(getMaxLenght()); inputUser.setMaxlength(getMaxLenght()); validator.setMaximum(getMaxLenght()); } validator.setMinimum(getMinLenght()); inputUser.addValidator(validator); return inputUser; }
panel.getChildren().add(labelPwd); HtmlInputSecret inputPwd = new HtmlInputSecret(); inputPwd.setId(PWD_NAME); inputPwd.setMaxlength(User.PASSWORD_MAX_LENGHT);