aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-03-09 17:01:52 +0000
committerArtur Signell <artur.signell@itmill.com>2010-03-09 17:01:52 +0000
commit5076f55235c41c3dd99560401f96798222d71a6a (patch)
tree9e63a2d5117fabee7b420a4d1e415349b422e2dd /src/com/vaadin
parenta0738eca200dfcd0b7ba7a0bac0d76c5cc0aca59 (diff)
downloadvaadin-framework-5076f55235c41c3dd99560401f96798222d71a6a.tar.gz
vaadin-framework-5076f55235c41c3dd99560401f96798222d71a6a.zip
Fix for #3554 - Form.addItemProperty() resets caption created by FieldFactory
svn changeset:11732/svn branch:6.3
Diffstat (limited to 'src/com/vaadin')
-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);