aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/vaadin/ui/Form.java15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/com/vaadin/ui/Form.java b/src/com/vaadin/ui/Form.java
index 678c323dc3..4f417c4b94 100644
--- a/src/com/vaadin/ui/Form.java
+++ b/src/com/vaadin/ui/Form.java
@@ -464,20 +464,7 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item,
}
// Configures the field
- try {
- field.setPropertyDataSource(property);
- String caption = id.toString();
- if (caption.length() > 50) {
- caption = caption.substring(0, 47) + "...";
- }
- if (caption.length() > 0) {
- caption = "" + Character.toUpperCase(caption.charAt(0))
- + caption.substring(1, caption.length());
- }
- field.setCaption(caption);
- } catch (final Throwable ignored) {
- return false;
- }
+ field.setPropertyDataSource(property);
// Register and attach the created field
addField(id, field);