I think the correct code for ExtGWT is

button.addListener(Events.OnClick, new Listener<ButtonEvent>() {
                          public void handleEvent(ButtonEvent be) {
                             System.out.println("Clicked!");  //Replace this 
bit :)
                          }
                        });



On Oct 16, 7:54 pm, Michi_de <[EMAIL PROTECTED]> wrote:
> Hi!
> Im a beginer in GWT and i have to use Ext GWT.
> But my problem is: i cant get any usefull tutorials or anything, to
> get started with some of Ext GWT Widgets. Like the FormPanel.
> As i cant register to the Ext GWT Forum, i give a try here, maybe
> someone uses Ext GWT too and can help me.
>
> My problem is pretty simple:
> I create a FormPanel like this:
>
> public class Formular implements EntryPoint  {
>
>         private FormPanel formular ;
>         private Button createButton;
>
>         public void onModuleLoad() {
>                 createButton = new Button("Ok");
>                 form = new FormPanel();
>
>                 TextField<String> name = new TextField<String>();
>                 name.setFieldLabel("Nachname");
>
>                 form.add(nachname);
>                         form.addButton(createButton);
>
>                 RootPanel.get("form").add(form);
>                 }
>
> }
>
> Actually this form works. I can add things and stuff and hit the
> button. But i cant wire any action listeners to this button. I just
> dont get it, how this should be working? The button is not the same
> button, as the GWT Button. The Ext GWT Button dont have any
> "addClickListener()" method.
> And so far i just cant find anything, to procede with the form.
> This form just suck terribly.
>
> I wanted to add a clickListener to the button and then start a method.
> Symple as it is in GWT. In Ext GWT i just cant do anything.
>
> Any hints, on how to work with Ext GWT Form 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 Google-Web-Toolkit@googlegroups.com
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