zorba-the-geek / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Order of Fields displayed on dynamic form #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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