Hilbrand / cobogwave

GWT wrapper for Google Wave Gadget API
Apache License 2.0
0 stars 0 forks source link

onClick for Wave Button inside Wave dialog box don't work #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
<code>
dialogBox=new org.cobogw.gwt.waveapi.gadget.client.ui.DialogBox(true,true);
dialogBox.setHTML("<b>Caption</b>");
VerticalPanel vp=new VerticalPanel();
Label errorMsg=new Label();
errorMsg.setText("error msg");
org.cobogw.gwt.waveapi.gadget.client.ui.Button okBtn=new 
org.cobogw.gwt.waveapi.gadget.client.ui.Button();
okBtn.setText("Okay");

okBtn.addClickHandler(new ClickHandler(){
    @Override
    public void onClick(ClickEvent event) {
        dialogBox.hide();
    }           
});

vp.add(errorMsg);
vp.add(okBtn);
dialogBox.setWidget(vp);
</code>

What is the expected output? What do you see instead?
onClick is never called

What version of the product are you using? On what operating system?
cobogwave 1.1.1
win7
chrome
Please provide any additional information below.

Original issue reported on code.google.com by monstern...@gmail.com on 20 Jun 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Problem: missing override of setWidget method in DialogBox class.

Original comment by hs@h72.nl on 21 Jun 2010 at 7:29