On Mar 27, 4:08 pm, matttai <matt...@hotmail.com> wrote: > Here it is in a quick summary: > > - I have declared a html cell element <td Id="unit" /> in the uibinder > xml file. > > - In composite widget i then bind the xml via : > initWidget(binder.createAndBindUi(this)); > > - Directly after this i then call : Dom.getElement("unit"); > > This returns null. I am curious to know why this is the case? > I am under the impression that the Dom has been created once the bind > has taken place.
...but it's not automatically attached to the document (this will only happen when you add your Composite as a child of another widget). BTW, why not using ui:field="unit"? (instead of id="unit") -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.