diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2017-03-06 16:04:08 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-07 15:43:00 +0200 |
commit | 291319fa3bc0c3eea46694df61d97d6290b909cd (patch) | |
tree | a507345a52ae4baa6d73d28610d4b532c332906a /compatibility-server | |
parent | 0e1485674d60d7e16ed7838f4499874dfdac5663 (diff) | |
download | vaadin-framework-291319fa3bc0c3eea46694df61d97d6290b909cd.tar.gz vaadin-framework-291319fa3bc0c3eea46694df61d97d6290b909cd.zip |
Restore type attributes to compatibility UIDL
Diffstat (limited to 'compatibility-server')
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) { |