I’have an app that works with Vaadin 6.4.4, I’ve updated to 6.4.5 and that is the result :
The Layout don’t show some components : see the image (first 6.4.4 the second one 6.4.5)
This is a form Layout with ComboBox and CustomField.
Any idea?
The code :
//Panel
rootPanel=new Panel(locale.getString("MESSAGELAYOUT_ROOTPANEL_CAPTION"));
rootPanel.setWidth("40%");
rootPanel.setStyleName("bubble");
rootPanel.setIcon(new ThemeResource("img/email.png"));
informationLabel= new Label("",Label.CONTENT_XML);
informationLabel.setCaption(locale.getString("MESSAGELAYOUT_INFORMATIONLABEL_CAPTION") );
informationLabel.setIcon(new ThemeResource("img/information.png"));
//Form
BeanItem<MessageInfo> messagebean = new BeanItem<MessageInfo>(messageInfo);
messageform.setItemDataSource(messagebean);
messageform.setFormFieldFactory(new MyFormFieldFactory());
messageform.setVisibleItemProperties(Arrays.asList(new String[] {
"sendoptions", "from", "to","sendtome","subject","message"}));
messageform.setValidationVisible(true);
messageform.setImmediate(true);
messageform.getField("sendtome").setValue(true);
messageform.getField("sendtome").setCaption(locale.getString("MESSAGELAYOUT_SENDMECHECKBOX_CAPTION"));
fromtext = (TextField)messageform.getField("from");
fromtext.setWidth("100%");
fromtext.setValue(rb.getString("mailer_from"));
fromtext.setReadOnly(true);
messageform.getField("from").setRequired(true);
messageform.getField("from").setCaption(locale.getString("MESSAGELAYOUT_FROMTEXT_CAPTION"));
messageform.getField("from").setRequiredError(locale.getString("MESSAGELAYOUT_FROMTEXT_REQUIREDERROR"));
subjecttext = (TextField)messageform.getField("subject");
subjecttext.setWidth("100%");
subjecttext.setRequired(false);
subjecttext.setCaption(locale.getString("MESSAGELAYOUT_SUBJECTFIELD_CAPTION"));
subjecttext.setRequiredError(locale.getString("MESSAGELAYOUT_SUBJECTMESSAGE_REQUIREDERROR"));
messagetext = (TextField)messageform.getField("message");
messagetext.setWidth("100%");
messagetext.setRows(5);
messagetext.setImmediate(true);
messagetext.setCaption(locale.getString("MESSAGELAYOUT_MESSAGETEXT_CAPTION"));
messageform.getField("to").setCaption(locale.getString("MESSAGELAYOUT_TOTEXT_CAPTION"));
messageform.getField("to").setRequiredError(locale.getString("MESSAGELAYOUT_TOTEXT_REQUIREDERROR"));
sendbutton = new Button(locale.getString("MESSAGELAYOUT_SENDBUTTON_CAPTION"), this, "commit");
sendbutton.setIcon(new ThemeResource("img/accept.png"));
sendbutton.setStyleName("default");
discardbutton = new Button(locale.getString("MESSAGELAYOUT_DISCARDBUTTON_CAPTION"),this,"discard");
discardbutton.setIcon(new ThemeResource("img/cancel.png"));
discardbutton.setStyleName("default");
HorizontalLayout footerlayout=new HorizontalLayout();
footerlayout.addComponent(sendbutton);
footerlayout.addComponent(discardbutton);
footerlayout.setSpacing(true);
messageform.getFooter().addComponent(footerlayout);
rootPanel.addComponent(informationLabel);
rootPanel.addComponent(messageform);
addComponent(rootPanel);