I'm sorry. I don't get it here. The createMenu() should not return a
Widget? Or?

On Tue, Dec 13, 2016 at 12:11 AM, harshyadav <[email protected]> wrote:

> Ok, if your class is extending a composite, then just make sure, the
> createMenu only initialize the ui elements.
> After you have called the RPC, you then set the ui elements.
>
> for e.g.
> private void setMenu(UserInfo userInfo) {
>      label.setName(userInfo.getName());
> }
>
>
>
>
>
> On Monday, December 12, 2016 at 5:05:08 PM UTC-5, Olar Andrei wrote:
>>
>> Hello,
>>
>> It does not work like this, I've already tried. It says "Error:
>> java.lang.AssertionError: This UIObject's element is not set; you may be
>> missing a call to either Composite.initWidget() or UIObject.setElement()"
>> because my class extends Composite (I forgot to mention it). Like it is
>> looking for the initWidget() method before executing the entire rpc call...
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/google-web-toolkit/28B788mIbEU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to