From 3d2036fdf5afb7e3749c51cdc4776369a299e4d1 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 22 Jun 2011 15:05:33 +0700 Subject: [PATCH 2/5] TopicDto: fixed min and max size in error message. No functional changes. --- .../java/org/jtalks/jcommune/web/dto/TopicDto.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java index d78dbd0..37cc1df 100644 --- a/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java +++ b/jcommune/jcommune-view/jcommune-web-controller/src/main/java/org/jtalks/jcommune/web/dto/TopicDto.java @@ -32,7 +32,7 @@ public class TopicDto { @Size(min = 5, max = 255) private String topicName; - @NotNull(message = "Length should be bigger then 3 and less then 50") + @NotNull(message = "Length should be bigger then 2 and less then 1000") @Size(min = 2, max = 1000) private String bodyText; -- 1.7.4.1