@@ -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); |
@@ -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; | |||
@@ -60,6 +62,13 @@ public class NativeSelect extends AbstractSelect | |||
registerRpc(new FocusAndBlurServerRpcDecorator(this, this::fireEvent)); | |||
} | |||
@Override | |||
public void paintContent(PaintTarget target) throws PaintException { | |||
target.addAttribute("type", "native"); | |||
super.paintContent(target); | |||
} | |||
@Override | |||
public void setMultiSelect(boolean multiSelect) | |||
throws UnsupportedOperationException { |
@@ -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); |
@@ -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) { |