I have to add many objects of a uibinder widgets(e.g.inner Uibinder) at a particular location in another uibinder(e.g. outer uibinder).
So the DOM events associated with fields in inner uibinder does not work.
</g:HTMLPanel>
inner uibinder
<g:HTMLPanel ui:field="innerHtmlPanel">
<g:Button ui:field="innerBtn"></g:Button>
</g:HTMLPanel>
Java code for inner ui binder
@uifield Button innerBtn;
inner() {
innerBtn.addClickHandler() {
// some event
}
}
Now,
onModuleLoad() {
Outeruibinder out = new Outeruibinder();
out.placehoplder.appendChild(new innerUiBinder());
out.placehoplder.appendChild(new innerUiBinder());
out.placehoplder.appendChild(new innerUiBinder());
RootPanel.get("myHtml").add(out);
}
Now, while rendering, three innerUiBinder objects appear properly but the event associated with button in innerUiBinder does not fire.
Can someone pls guide on this.
Thanks
Deepak
--
Deepak Singh