Hello,
i m working with two panels and I have a problem I cannot solve.

A have an HTML file with 2 div elements with different ids (mainData1
and mainData2),
and a java file like this:


public class MyProject implements EntryPoint {


        private Label firstNameLabel = new Label("First name:");
        private TextBox firstNameTextBox = new TextBox();
        private FlexTable dataFlexTable1 = new FlexTable();
        private VerticalPanel mainPanel1 = new VerticalPanel();

        private Label lastNameLabel = new Label("Last name:");
        private TextBox lastNameTextBox = new TextBox();
        private FlexTable dataFlexTable2 = new FlexTable();
        private VerticalPanel mainPanel2 = new VerticalPanel();


        public void onModuleLoad() {

                //Assemble data table 1 and 2
                dataFlexTable1.setWidget(0, 0, firstNameLabel);
                dataFlexTable1.setWidget(0, 1, firstNameTextBox);
                dataFlexTable2.setWidget(0, 0, lastNameLabel);
                dataFlexTable2.setWidget(0, 1, lastNameTextBox);


                //Assemble main panel 1
                mainPanel1.add(dataFlexTable1);

                //Assemble main panel 2
                mainPanel2.add(dataFlexTable2);

               // Associate the Main panel 1 with the HTML host page.
               RootPanel.get("mailData1").add(mainPanel1);

              // Associate the Main panel 2 with the HTML host page.
              RootPanel.get("mailData2").add(mainPanel2);
        }
}

I 've tried to create two java classes with the widgets of each panel
and an EntryPoint class with the onModuleLoad() method but it still
doesn't work. Any suggestions?
Can I have a small example like this to understand how it 's the
correct way to work with multiple panels?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to