summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/demo/features/FeatureDateField.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/itmill/toolkit/demo/features/FeatureDateField.java b/src/com/itmill/toolkit/demo/features/FeatureDateField.java
index 8f6abf4ad4..5695eba556 100644
--- a/src/com/itmill/toolkit/demo/features/FeatureDateField.java
+++ b/src/com/itmill/toolkit/demo/features/FeatureDateField.java
@@ -90,7 +90,7 @@ public class FeatureDateField extends Feature {
"Minute",
"Second",
"Millisecond" });
- ap.setValue(DateField.RESOLUTION_DAY);
+ ap.getField("resolution").setValue(new Integer(DateField.RESOLUTION_DAY));
Select themes = (Select) p.getField("style");
themes
.addItem("text")
@@ -101,7 +101,6 @@ public class FeatureDateField extends Feature {
.getItemProperty(themes.getItemCaptionPropertyId())
.setValue("calendar");
p.addProperties("DateField Properties", ap);
- themes.setValue("calendar");
l.addComponent(p);
return l;