Hi,
As javadoc of Composite.initWidget() says :
Sets the widget to be wrapped by the composite. The wrapped widget must be
set before calling any {@link Widget} methods on this object, or adding it
to a panel. This method may only be called once for a given composite.
So, it doesn't matter where you call this sentence. However, you should
write this in constructor instead of onload, thus you will be sure that
initWidget will be call only one time.
Alexandre.
2011/9/27 wahaha
> "initWidget(uiBinder.createAndBindUi(this));"
>
> does this sentance shoud write in onload() method or in the contrator
> method?
>
> --
> 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-toolkit@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.
>
>
--
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-toolkit@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.