svnno****@sourc*****
svnno****@sourc*****
2007年 11月 19日 (月) 21:57:49 JST
Revision: 707 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=707 Author: shinsuke Date: 2007-11-19 21:57:49 +0900 (Mon, 19 Nov 2007) Log Message: ----------- added max length validator. Modified Paths: -------------- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/FolderMetadataEditorPage.java pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/PageMetadataEditorPage.java -------------- next part -------------- Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/FolderMetadataEditorPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/FolderMetadataEditorPage.java 2007-11-19 09:02:17 UTC (rev 706) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/FolderMetadataEditorPage.java 2007-11-19 12:57:49 UTC (rev 707) @@ -26,6 +26,7 @@ import org.seasar.framework.log.Logger; import org.seasar.teeda.extension.annotation.takeover.TakeOver; import org.seasar.teeda.extension.annotation.takeover.TakeOverType; +import org.seasar.teeda.extension.annotation.validator.Length; import org.seasar.teeda.extension.annotation.validator.Required; public class FolderMetadataEditorPage extends AbstractSiteEditorPage implements @@ -55,11 +56,14 @@ private String metadataValue; @Required + @Length(maximum = 64) private String newMetadataLocale; @Required + @Length(maximum = 255) private String newMetadataName; + @Length(maximum = 255) private String newMetadataValue; private String action; Modified: pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/PageMetadataEditorPage.java =================================================================== --- pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/PageMetadataEditorPage.java 2007-11-19 09:02:17 UTC (rev 706) +++ pal-admin/trunk/src/main/java/jp/sf/pal/admin/web/site/PageMetadataEditorPage.java 2007-11-19 12:57:49 UTC (rev 707) @@ -26,6 +26,7 @@ import org.seasar.framework.log.Logger; import org.seasar.teeda.extension.annotation.takeover.TakeOver; import org.seasar.teeda.extension.annotation.takeover.TakeOverType; +import org.seasar.teeda.extension.annotation.validator.Length; import org.seasar.teeda.extension.annotation.validator.Required; public class PageMetadataEditorPage extends AbstractSiteEditorPage implements @@ -55,11 +56,14 @@ private String metadataValue; @Required + @Length(maximum = 64) private String newMetadataLocale; @Required + @Length(maximum = 255) private String newMetadataName; + @Length(maximum = 255) private String newMetadataValue; private String action;