@Override public void setRequiredIndicatorVisible(boolean requiredIndicatorVisible) { super.setRequired(requiredIndicatorVisible); this.requiredIndicatorOnly = requiredIndicatorVisible; }
ta.setRequired(true); if (hasText(taw.getCaption())) { ta.setRequiredError(getMessage("processdata.block.field-required-error") + " " + taw.getCaption());
comments.setWidth("80%"); comments.setRows(4); comments.setRequired(true); comments.addValidator(new StringLengthValidator( "You must supply a comment!", 1, 2048, false));
@Override public void setRequired(boolean required) { rawText.setRequired(required); }
commentTextArea.setWidth("80%"); commentTextArea.setRows(6); commentTextArea.setRequired(true); commentTextArea.setRequiredError("A comment is required in order to submit."); commentTextArea.setValidationVisible(false);
"Notes"); notesField.setWidth("500px"); notesField.setRequired(false); notesField.setHeight("150px"); notesField.setImmediate(true);
comments.setWidth("80%"); comments.setRows(4); comments.setRequired(true); comments.addValidator(new StringLengthValidator( "You must supply a comment!", 1, 2048, false));
eventDescr.setRequired(true); eventDescr.setNullRepresentation(""); eventLayout.addComponent(eventDescr); logMsgContent.setRequired(true); logMsgContent.setNullRepresentation(""); eventLayout.addComponent(logMsgContent); eventDescr.setRequired(true); eventDescr.setNullRepresentation(""); eventLayout.addComponent(eventDescr);
comments.setWidth("80%"); comments.setRows(4); comments.setRequired(true); comments.addValidator(new StringLengthValidator( "You must supply a comment!", 1, 2048, false));
comments.setWidth("80%"); comments.setRows(4); comments.setRequired(true); comments.addValidator(new StringLengthValidator( "You must supply a comment!", 1, 2048, false));
errorMessageTextArea.setValidationVisible(false); errorMessageTextArea.setPropertyDataSource(errorCategorisationItem.getItemProperty("errorDescription")); errorMessageTextArea.setRequired(true); errorMessageTextArea.setWidth("650px"); errorMessageTextArea.setRows(8);