Form<DataSource> form = new Form(DataSource.class);
form.setNumColumns(2);
TextItem nameItem = new TextItem("name", "Name");
CheckBoxItem enabledItem = new CheckBoxItem("enabled", "Is enabled?");
TextBoxItem jndiItem = new TextBoxItem("jndiName", "JNDI");
TextBoxItem driverItem = new TextBoxItem("driverClass", "Driver");
TextBoxItem userItem = new TextBoxItem("username", "Username");
PasswordBoxItem passwordItem = new PasswordBoxItem("password", "Password");
form.setFields(nameItem, enabledItem, jndiItem, driverItem, userItem, passwordItem);
form.bind(dataSourceTable);
form.setEnabled(false); // currently not editable