dont work here... later render....he making nothing...im tryng using other
way

2008/10/9 leo_BsAs <[EMAIL PROTECTED]>

>
> Hi,
>
>    public void generateForm() {
>        form = new FormPanel();
>        form.setLabelAlign(Position.LEFT);
>        form.setWidth(450);
>        form.setLabelWidth(100);
>        form.setFrame(true);
>
>        Field[] fields = instantiateFields();
>
>        for(int i = 0; i < fields.length; i++) {
>            form.add(fields[i]);
>        }
>
>        Button aceptarButton = new Button();
>        aceptarButton.setText("Guardar");
> [...]
>
>        form.addButton(aceptarButton);
>        form.addButton(cancelarButton);
>        form.setHeight(33*fields.length + 30);
>        panel.add(form);
>        panel.doLayout();
> }
> where 'instantiateFields()' return an array of fields...
>
> Let me know if it helps you...
>
> Leo
>
> On Oct 8, 5:24 pm, "Vander silveira" <[EMAIL PROTECTED]> wrote:
> > how i make a Dynamic form??
> >
> > i have list of elements...and i want add all in my form like this....how
> i
> > make??? ty for attention seeya =)
> >
> >   for (int i = 0; i < elements.size(); i++) {
> >          if (elements.get(i).getType().equalsIgnoreCase("textfield"))
> >             mainPanel.add(getTextField(indices.get(i)),
> >                   new AnchorLayoutData("95%"));
> >
> >       }
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to