The order in which the fields are displayed is not correct in case of using
datasource.
DataSource datasource = new DataSource();
DataSourceTextField userNameTF = new
DataSourceTextField("userName",
"UserName", 30, true);
DataSourcePasswordField passwordPF = new
DataSourcePasswordField(
"password", "Password", 30, true);
datasource.setFields(userNameTF, passwordPF);
final DynamicForm form = new DynamicForm();
form.setDataSource(datasource);
form.setUseAllDataSourceFields(true);
ButtonItem signInBtn = new ButtonItem();
signInBtn.setTitle("SignIn");
HeaderItem header = new HeaderItem();
header.setDefaultValue("SignIn to Anulist");
form.setFields(header, signInBtn);
form.draw();
VLayout layout = new VLayout();
layout.addMember(form);
Original issue reported on code.google.com by yphaniku...@gmail.com on 26 Feb 2009 at 10:14
Original issue reported on code.google.com by
yphaniku...@gmail.com
on 26 Feb 2009 at 10:14