I used FormPanel and MultiFieldPanel from the API GWT-EXT with GWT Designer.
My problem is that everything works fine in runtime but in the designer, nothing appears properly, the designer editor keeps empty, just one empty panel in the middle of the screen.
I use these classes that i picked from the palette :
import com.gwtext.client.widgets.form.FormPanel;
import com.gwtext.client.widgets.form.MultiFieldPanel;
import com.gwtext.client.widgets.form.TextField;
import com.gwtext.client.widgets.layout.ColumnLayoutData;
Here is a part of my code:
- Code: Select all
formPanel = new FormPanel();
formPanel.setTitle("TEST");
formPanel.setLabelWidth(80);
formPanel.setFrame(true);
formPanel.setBorder(true);
formPanel.setWidth(400);
formPanel.setHeight(100);
Button detail = new Button("Détails");
appReference = new TextField("Référence:", "reference", 200);
appReference.setReadOnly(true);
appLibelle = new TextField("Libéllé:", "libelle", 300);
appLibelle.setReadOnly(true);
MultiFieldPanel namePanel = new MultiFieldPanel();
namePanel.addToRow(appReference, 300);
namePanel.addToRow(detail, new ColumnLayoutData(1));
formPanel.add(namePanel);
namePanel = new MultiFieldPanel();
namePanel.addToRow(appLibelle, new ColumnLayoutData(1));
formPanel.add(namePanel);
initWidget(formPanel);
Thanks for your help,