This is an automated email from the ASF dual-hosted git repository. solomax pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push: new 8c85ff4 [OPENMEETINGS-2612] field limits are added 8c85ff4 is described below commit 8c85ff4ba15dae364e64e33a0bcc9673d6d35d16 Author: Maxim Solodovnik <solomax...@gmail.com> AuthorDate: Thu Apr 15 20:07:16 2021 +0700 [OPENMEETINGS-2612] field limits are added --- .../org/apache/openmeetings/web/admin/configurations/ConfigForm.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/admin/configurations/ConfigForm.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/admin/configurations/ConfigForm.java index 3563bc5..5148ae0 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/admin/configurations/ConfigForm.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/admin/configurations/ConfigForm.java @@ -18,6 +18,8 @@ */ package org.apache.openmeetings.web.admin.configurations; +import static org.apache.wicket.validation.validator.StringValidator.maximumLength; + import java.util.List; import org.apache.openmeetings.db.dao.basic.ConfigurationDao; @@ -153,7 +155,8 @@ public class ConfigForm extends AdminBaseForm<Configuration> { validatable.error(new ValidationError(getString("error.cfg.exist"))); } } - })); + }).add(maximumLength(255))); + valueS.add(maximumLength(255)); stringBox.add(valueS.setLabel(new ResourceModel("271"))).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true); numberBox.add(valueN.setLabel(new ResourceModel("271"))).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true); booleanBox.add(valueB.setLabel(new ResourceModel("271"))).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true);