// Create a form and use FormLayout as its layout. final Form form = new Form(); // Set form caption text form.setCaption("Subscribe Newsletter"); // Create a bean item that is bound to the bean. final BeanItem item = new BeanItem(new Article()); // Bind the bean item as the data source for the form. form.setItemDataSource(item); // Add the subscribe button HorizontalLayout formFooter = new HorizontalLayout(); Button subscribeButton = new Button("saisi"); subscribeButton.addListener(new Button.ClickListener() { void buttonClick(Button.ClickEvent event) { form.commit(); controller.addArticle(item.getBean()); } }); formFooter.addComponent(subscribeButton); form.setFooter(formFooter);