hi all,
i'm using uibinder to display a button in the sample mail application
that comes along with gwt.
like
<g:center>
<g:ScrollPanel>
<g:HTML styleName='{style.body}' ui:field='body'
wordWrap='true'/>
</g:ScrollPanel>
</g:center>
from my java code i'm inserting the button as below.
HorizontalPanel hPanel = new HorizontalPanel();
hPanel.setSpacing(10);
final TextBox textBox = new TextBox();
textBox.setText("text box");
hPanel.add(textBox);
Button normalButton = new Button("normal",
new ClickHandler() {
public void onClick(ClickEvent event) {
Window.alert("got the call");
}
});
normalButton.ensureDebugId("cwBasicButton-normal");
hPanel.add(normalButton);
body.setInnerHTML(item.body.toString());
is there something wrong in what i'm doing ?
the button gets displayed but the event is not firing.!!
please suggest.
--
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.