Skip to content

Commit

Permalink
readme polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-kvasnovsky committed Jan 1, 2013
1 parent 02a6d0a commit 8cf751c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,13 @@ public class MyVaadinUI extends UI {
protected void init(VaadinRequest request) {
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);

LazyBeanContainer dataSource = new LazyBeanContainer(User.class, new UserDAO(), new UserSearchCriteria());
setContent(layout);

ComboBox comboBox = new ComboBox("Combobox:");
LazyBeanContainer dataSource = new LazyBeanContainer(User.class, new UserDAO(), new UserSearchCriteria());
comboBox.setContainerDataSource(dataSource);
comboBox.setItemCaptionPropertyId("firstName");
layout.addComponent(comboBox);

setContent(layout);
layout.addComponent(comboBox);å
}

}
Expand Down

0 comments on commit 8cf751c

Please sign in to comment.