Well, it turned out that I have to add the FormPanel to the main
panel...

On Dec 14, 4:16 pm, LoneWolf <[email protected]> wrote:
> Hey,
> I'm trying to use FormPanel to submit values to a servlet:
> +++++
>         form = new FormPanel();
>         form.setAction("/webcontext/command");
>         form.setMethod(FormPanel.METHOD_POST);
>         form.setEncoding(FormPanel.ENCODING_URLENCODED);
>         form.addFormHandler(this);
>         // controls table is created with FlexTable controlsTable =
> new FlexTable();
>         form.setWidget(controlsTable);
>         groupName = new Label("Group name:");
>         group = new TextBox();
>         group.setName("groupName");
>         submit = new Button("Create Group");
>         submit.addClickListener(this);
>         cancel = new Button("Cancel");
>         cancel.addClickListener(this);
>
> // Then I'm adding the labels and form's controls to the controlsTable
>
>     public void onClick(Widget sender) {
>         if (sender == submit)
>             form.submit();
>         else
>             this.hide(true);
>     }
> ++++++
> But when clicking on "Create Group" button, no request is made to the
> servlet (proofed by FireBug and the debugger).
> Why my for isn't getting submitted?
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
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