From af2c1603cf9bcd4e828690108a61876131db429b Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 5 Jan 2006 09:37:54 +0000 Subject: [PATCH] Fix for Date Component issue identified in AWC-395 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2078 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/web/ui/repo/component/property/UIProperty.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/web/ui/repo/component/property/UIProperty.java b/source/java/org/alfresco/web/ui/repo/component/property/UIProperty.java index e1ded72f24..4e70a0d156 100644 --- a/source/java/org/alfresco/web/ui/repo/component/property/UIProperty.java +++ b/source/java/org/alfresco/web/ui/repo/component/property/UIProperty.java @@ -216,8 +216,7 @@ public class UIProperty extends PropertySheetItem control = (UIInput)context.getApplication(). createComponent(ComponentConstants.JAVAX_FACES_INPUT); control.setRendererType(RepoConstants.ALFRESCO_FACES_DATE_PICKER_RENDERER); - control.getAttributes().put("startYear", new Integer(1970)); - control.getAttributes().put("yearCount", new Integer(50)); + control.getAttributes().put("yearCount", new Integer(30)); control.getAttributes().put("showTime", Boolean.valueOf(true)); control.getAttributes().put("style", "margin-right: 7px;"); } @@ -226,8 +225,7 @@ public class UIProperty extends PropertySheetItem control = (UIInput)context.getApplication(). createComponent(ComponentConstants.JAVAX_FACES_INPUT); control.setRendererType(RepoConstants.ALFRESCO_FACES_DATE_PICKER_RENDERER); - control.getAttributes().put("startYear", new Integer(1970)); - control.getAttributes().put("yearCount", new Integer(50)); + control.getAttributes().put("yearCount", new Integer(30)); control.getAttributes().put("style", "margin-right: 7px;"); } else