summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Table.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com/vaadin/ui/Table.java')
-rw-r--r--server/src/com/vaadin/ui/Table.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/server/src/com/vaadin/ui/Table.java b/server/src/com/vaadin/ui/Table.java
index 10d1c45ab6..5f22ec46ab 100644
--- a/server/src/com/vaadin/ui/Table.java
+++ b/server/src/com/vaadin/ui/Table.java
@@ -69,6 +69,7 @@ import com.vaadin.shared.util.SharedUtil;
import com.vaadin.ui.declarative.DesignAttributeHandler;
import com.vaadin.ui.declarative.DesignContext;
import com.vaadin.ui.declarative.DesignException;
+import com.vaadin.ui.declarative.DesignFormatter;
import com.vaadin.util.ReflectTools;
/**
@@ -279,7 +280,7 @@ public class Table extends AbstractSelect implements Action.Container,
ICON_ONLY(ItemCaptionMode.ICON_ONLY),
/**
* Row caption mode: Item captions are read from property specified with
- * {@link #setItemCaptionPropertyId(Object)}.
+ * {@link #setItemCaptionPropertyId(Object)} .
*/
PROPERTY(ItemCaptionMode.PROPERTY);
@@ -2055,7 +2056,9 @@ public class Table extends AbstractSelect implements Action.Container,
} else if (minPageBufferIndex < pageBufferFirstIndex) {
newCachedRowCount -= pageBufferFirstIndex - minPageBufferIndex;
}
- /* calculate the internal location of the new rows within the new cache */
+ /*
+ * calculate the internal location of the new rows within the new cache
+ */
int firstIndexInNewPageBuffer = firstIndex - pageBufferFirstIndex
- rowsFromBeginning;
@@ -6199,7 +6202,8 @@ public class Table extends AbstractSelect implements Action.Container,
}
Iterator<?> propertyIt = propertyIds.iterator();
for (Element e : elems) {
- String columnValue = e.html();
+ String columnValue = DesignFormatter.unencodeFromTextNode(e
+ .html());
Object propertyId = propertyIt.next();
if (header) {
setColumnHeader(propertyId, columnValue);
@@ -6240,7 +6244,7 @@ public class Table extends AbstractSelect implements Action.Container,
}
Object[] data = new String[cells.size()];
for (int c = 0; c < cells.size(); ++c) {
- data[c] = cells.get(c).html();
+ data[c] = DesignFormatter.unencodeFromTextNode(cells.get(c).html());
}
Object itemId = addItem(data,