Caption of ComboBox in formlayout visible when setEnable(false)

As title.I’m using vaadin 7.1 [code]
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
setContent(layout);

    final ComboBox NameCb = new ComboBox("COMBO_NAME");
    NameCb.setWidth("157px");
    NameCb.setImmediate(true);
    NameCb.setNewItemsAllowed(true);
    NameCb.setNullSelectionAllowed(true);
    NameCb.setInputPrompt("ADD_NEW");

    TextField umaIPTf = new TextField("NAME");
    umaIPTf.setMaxLength(15);
    umaIPTf.setImmediate(true);

    TextField umaCommandPortTf = new TextField("AGE");
    umaCommandPortTf.setMaxLength(5);
    umaCommandPortTf.setImmediate(true);

    final FieldGroup umaFieldGroup = new FieldGroup();
    umaFieldGroup.bind(NameCb, "policyName");
    umaFieldGroup.bind(umaIPTf, "umaIP");
    umaFieldGroup.bind(umaCommandPortTf, "cmdPort");

    FormLayout umaPolForm = new FormLayout();
    umaPolForm.setMargin(new MarginInfo(true, false, true, false));
    umaPolForm.addComponent(NameCb);
    umaPolForm.addComponent(umaIPTf);
    umaPolForm.addComponent(umaCommandPortTf);

    Button button = new Button("click me");
    button.setImmediate(true);
    button.addClickListener(new ClickListener() {

        @Override
        public void buttonClick(ClickEvent event) {
            if (umaFieldGroup.isEnabled()) {
                umaFieldGroup.setEnabled(false);
            } else {
                umaFieldGroup.setEnabled(true);
            }

        }

    });

    layout.addComponent(umaPolForm);
    layout.addComponent(button);
} 

[/code]
12888.png

I have noticed same problem.

And also if you first set ComboBox.setEnabled(false); and after user selection set it ComboBox.setEnabled(true); the caption is left disabled.

So in FormLayout the ComboBox caption seems to have some problem.

Please
create a ticket
about this.

Caanot do. No priveledges.

You just need to register and log in - “Register” link on top right.

I submitted a similar ticket to this issue awhile ago.
http://dev.vaadin.com/ticket/10734