Wednesday, October 30, 2013

Re: [Error] This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()

Hi Shravan,

Can you paste the changes you did. I am also getting the same issue.

On Tuesday, June 3, 2008 5:49:31 PM UTC+5:30, Shravan కుమార్ *-*-0-*-* wrote:
Thanks all,
 
I got the solution. I was trying to pass params in the constructor it self, hence the problem.
 
I have created the object with default constructor and initialized with initWidget and updated the object with proper constructor. Now its working fine.

On Tue, Jun 3, 2008 at 5:14 PM, Ian Bambury <ianba...@gmail.com> wrote:
Here's a little example:
 
class DisplayBox extends Composite
{
    public DisplayBox(String header, String data)
    {
        VerticalPanel widget = new VerticalPanel();
        initWidget(widget);
        widget.addStyleName("demo-Composite");

        Label headerText = new Label(header);
        widget.add(headerText);
        headerText.addStyleName("demo-Composite-header");

        Label dataText = new Label(data);
        widget.add(dataText);
        dataText.addStyleName("demo-Composite-data");
    }
}


--
Ian
http://examples.roughian.com
__________________________________________

Stuff the environment - print this email
__________________________________________

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment