My Example:
----------------

public class XXXXXXX implements EntryPoint {

        public void onModuleLoad() {

                Button sendButton = new Button("Send");
//              sendButton.addClickHandler(new ClickHandler() {
//                      @Override
//                      public void onClick(ClickEvent event) {
//                              Window.alert("click click ...");
//                      }
//              });
                Grid grid = new Grid(7, 1);
                grid.setWidget(0, 0, sendButton);
                grid.setWidget(1, 0, new Label("XXXXXXXXXXXXXXXXXXX"));
                FormPanel formPanel = new FormPanel();
                formPanel.add(grid);

                DockPanel dock = new DockPanel();
                HTML north = new HTML(formPanel.toString(), true);
                dock.add(north, DockPanel.NORTH);

                class MyHandler implements ClickHandler, KeyUpHandler {
                        public void onClick(ClickEvent event) {
                                Window.alert("click!");
                        }
                        public void onKeyUp(KeyUpEvent event) {}
                }

                MyHandler handler = new MyHandler();
                sendButton.addClickHandler(handler);

                // is working :-)
                // RootPanel.get("sendButtonContainer").add(formPanel);

                // is not working :-(
                RootPanel.get("sendButtonContainer").add(north);

                // is not working :-(
                // RootPanel.get("sendButtonContainer").add(dock);
        }
}


My clickHandler doesn't work inside of HTML! Why?

Best regards,
Stockhausen

-- 
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