summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2017-03-06 16:04:08 +0200
committerHenri Sara <henri.sara@gmail.com>2017-03-07 12:36:54 +0200
commitc9436d8a25ceacc2850ea63732ed4aa57e17f901 (patch)
treeb140f64bee74a8120e7ba1bb365dbe93c0e3b815 /compatibility-server
parent5081392bfdf6b74915952a64d1070255f7268457 (diff)
downloadvaadin-framework-c9436d8a25ceacc2850ea63732ed4aa57e17f901.tar.gz
vaadin-framework-c9436d8a25ceacc2850ea63732ed4aa57e17f901.zip
Restore type attributes to compatibility UIDL
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/ListSelect.java2
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java9
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java1
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/TwinColSelect.java1
4 files changed, 12 insertions, 1 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/ListSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/ListSelect.java
index 16619afdf5..91b3c8375d 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/ListSelect.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/ListSelect.java
@@ -77,7 +77,7 @@ public class ListSelect extends AbstractSelect {
@Override
public void paintContent(PaintTarget target) throws PaintException {
- // Width is no longer based on columns
+ target.addAttribute("type", "list");
// Adds the number of rows
if (rows != 0) {
target.addAttribute("rows", rows);
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
index 42f270619c..3f53969bc7 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/NativeSelect.java
@@ -23,6 +23,8 @@ import com.vaadin.event.FieldEvents.BlurListener;
import com.vaadin.event.FieldEvents.FocusAndBlurServerRpcDecorator;
import com.vaadin.event.FieldEvents.FocusEvent;
import com.vaadin.event.FieldEvents.FocusListener;
+import com.vaadin.server.PaintException;
+import com.vaadin.server.PaintTarget;
import com.vaadin.v7.data.Container;
import com.vaadin.v7.event.FieldEvents;
@@ -61,6 +63,13 @@ public class NativeSelect extends AbstractSelect
}
@Override
+ public void paintContent(PaintTarget target) throws PaintException {
+ target.addAttribute("type", "native");
+
+ super.paintContent(target);
+ }
+
+ @Override
public void setMultiSelect(boolean multiSelect)
throws UnsupportedOperationException {
if (multiSelect == true) {
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java
index a7782b2e50..ce39dd04f1 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/OptionGroup.java
@@ -71,6 +71,7 @@ public class OptionGroup extends AbstractSelect
@Override
public void paintContent(PaintTarget target) throws PaintException {
+ target.addAttribute("type", "optiongroup");
if (isHtmlContentAllowed()) {
target.addAttribute(OptionGroupConstants.HTML_CONTENT_ALLOWED,
true);
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/TwinColSelect.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/TwinColSelect.java
index 5f585962ff..965fe85e99 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/TwinColSelect.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/TwinColSelect.java
@@ -106,6 +106,7 @@ public class TwinColSelect extends AbstractSelect {
@Override
public void paintContent(PaintTarget target) throws PaintException {
+ target.addAttribute("type", "twincol");
// Width is no longer based on columns
// Adds the number of rows
if (rows != 0) {