Hi,
sorry for the very beginner question following, but I really did not understand one main aspect about data bindings.
If I use the following main method for my vaadin application, will the values be hardcoded in the created java script, or are they fetched from the server?
public void init() {
final Window main = new Window("Hello window");
setMainWindow(main);
/* Create the table with a caption. */
Table table = new Table("This is my Table");
/* Define the names and data types of columns.
* The "default value" parameter is meaningless here. */
table.addContainerProperty("First Name", String.class, null);
table.addContainerProperty("Last Name", String.class, null);
table.addContainerProperty("Year", Integer.class, null);
/* Add a few items in the table. */
table.addItem(new Object[] {
"Nicolaus","Copernicus",new Integer(1473)}, new Integer(1));
table.addItem(new Object[] {
"Tycho", "Brahe", new Integer(1546)}, new Integer(2));
table.addItem(new Object[] {
"Giordano","Bruno", new Integer(1548)}, new Integer(3));
table.addItem(new Object[] {
"Galileo", "Galilei", new Integer(1564)}, new Integer(4));
table.addItem(new Object[] {
"Johannes","Kepler", new Integer(1571)}, new Integer(5));
table.addItem(new Object[] {
"Isaac", "Newton", new Integer(1643)}, new Integer(6));
main.addComponent(table);
}
From what I have understood, the values will be hardcoded, but how can I tell vaadin to download the data from the server side? I think I am missing an essential block of understanding here, but I have scrolled though the book of Vaadin without answer …